Ordinal Numbers in a related form

rss

Posted by Sonoma - Feb 23 ’15 at 11:22

Any thoughts on automatically adding ordinal numbers as needed to a related form?

1st row...

2nd row

...

9th row

10th row

 

Thanks.

 

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 8 years 2 months 8 days
    #1 by Dmitry Kozlov Feb 24 ’15 at 03:37

    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-using-the-spfield-jslink-property-to-change-the-way-your-field-is-rendered-in-sharepoint-2013

  • Sonoma
    Member
    Member for: 7 years 2 months 5 days
    #2 by Sonoma Jul 14 ’16 at 08:28

    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.

Displaying 1 to 2 of 2 messages