Auto numbering using preceding-sibling - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Auto numbering using preceding-sibling

Last post 03-10-2013 11:27 AM by Patrick Halstead. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 03-04-2013 12:05 PM

    Auto numbering using preceding-sibling

    hey, i was wondering is it possible to auto number using (a,b,c ...etc) instead of (1,2,3 .. etc) maybe using "preceding-sibling" or similar codes ?
  • 03-10-2013 11:27 AM In reply to

    Re: Auto numbering using preceding-sibling

    Yes!

    Here's an xpath you can use: count(../preceding-sibling::my:group)+1

    Replace my:group with the repeating group node above your field. Best practice is not to make the field repeating, but rather the parent group.

    Good luck!

    Patrick Halstead
    Project Manager at Qdabra
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.