How can I create an InfoPath text box in an auto-increment repeating table?

In my InfoPath form (which needs to be loaded into the SharePoint Portal by a browser), I have a repeating table that contains multiple fields. Now I would like to do the first autoincrement of the textbox starting at 1. How exactly can I do this?

I've already heard of a method using the "count" function, but this leads to errors or, at best, a static number that is unfortunately not counted. The function I added for the field is "count (.) + 1"

Any suggestions?

+1


source to share


2 answers


Let's say your repeating group is called "item" and your autoincrement field is called "index". The default value for the index field should be

count(/my:myFields/my:item)

      



This should be considered correct for you.

+1


source


I suspect that you really want position (). Count will just return the total number of nodes that match the xpath expression you give it.



0


source







All Articles