You are viewing limited content. For full access, please sign in.

Question

Question

Iterative Line Counter

asked on February 12, 2014

 I am looking for a simple way to have an input box automatically display the current row it lies on in a Repeatable Row. I was hoping to have the ability to use the 'Row Label' some how but I don't see how.

0 0

Answer

SELECTED ANSWER
replied on February 12, 2014

Yes that is a table but as I was saying I am looking to populate the one of the 'Single Line' columns with that {n} number.

0 0
replied on February 12, 2014

Ah, thats a bit more difficult....

 

So, you will likely want to use Javascript so that when you press that Add field, the value in the field is set to the same as would be in the row label.

 

The other way to handle this would be, to start the javascript function whenever that table changes (plus or minus a row) and have the function increment a counter and store the value of the counter as it iterates through the rows for that field. 

1 0
replied on February 12, 2014

Ah, I was hoping to steer away from java as to make it simple for the individuals editing these forms in the future.

 

 

0 0
replied on February 12, 2014

if you wanted it simple, you would be able to get away with the Row Label. But, I bet if you set it up right, you can make it very easy to just add the code and have the user set the field to a certain CSS class and then it would work. Minimal amount of effort would be to use the row labels though

0 0

Replies

replied on February 12, 2014

Is this a Table? You can use the row label set to {n} to display the current row:

 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.