Page 1 of 1

Ordinal Numbers in a related form

Posted: 23 Feb 2015
by Sonoma
Any thoughts on automatically adding ordinal numbers as needed to a related form?

1st row...

2nd row

...

9th row

10th row



Thanks.

Re: Ordinal Numbers in a related form

Posted: 24 Feb 2015
by Dmitry Kozlov
Hi,

You can switch Render property of the Related items into Client, include additional JSLink into the View property:

<View>
...
<JSLink>clienttemplates.js|~sitecollection/style library/custom.js</JSLink>
...
</View>
and customize the view template in the custom.js file by adding Row Number column:

http://zimmergren.net/technical/sp-2013 ... point-2013

Re: Ordinal Numbers in a related form

Posted: 14 Jul 2016
by Sonoma
Revisiting this. Never really figured out the above. We just chose to do it manually.

I ran into something I have not tried before and I can't seem to figure it out in my repeating list.



I was thinking I could do this fairly simple using a caculated field and get the row index().

Would this be possible?

I can get by with not having the ordinal numbers but having this would be ok.

Regimen 1

Regimen 2

Regimen 3

Regimen ...

Regimen ...

Regimen 25

Thanks.