Hi Jennifer Smith
You cannot reference the form field in the repeating section maximum rows configuration. You can create a formula but cannot reference another field to restrict it.
see this for reference as a start:
Thank you. Unfortunately I do not know javascript
maybe it's not exactly what you figured out, but if you want to avoid any javascript it might be sufficient for you ...
so try following.
there is a currentRowNumber() runtime function which can count rows in repeating section.
so, add a calculated value control and set its formula to calculate current row number
eg.
next, just to have some content in repeating section I added a text box and named it 'text'
note this control was used in above formula
then I added one another calculated value control to provide a warning if max number of rows is exceeded
to get max number of possible rows I added a text control out of repeating section and named it MaxLines
finally I set up two formatting rules which show/hide either 'content' control or warning message
rule for content control
and rule for warning message with opposite logic
overall setup looks like this
Can the max lines be different for each submission based on the answer to the previous question? If person A chooses 5 markets the max amount of cost centers he can enter is 5. However, if person be selects 10 markets the max amount of cost centers he can add is 10.
sure!
have a closer look on my example - I have there a input box (named MaxLines) above repeating section that defines how much entries are max allowed within repeating section.
I used 3 in that example.
Hi , did this worked for you?
Hi! I ended up going a different direction so I didn't try this one.
What was the solution in your case? I am after similar approach ... when user selects: 3 Items then the repeated section should not allow to add more than 3 rows.