This is what i also need to do. I have a text box in a repeating section, but when i add the code (
count(../preceding-sibling::my:Row) + 1
) I get an error.
"../preceding-sibling::my:Row" does not point to a valid location path of a field or group.
I feel like i need to change the my:Row, but i dont know to what.