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

Question

Question

Repeat a radio button field until "no" is checked.

asked on August 7, 2019

Hello,

 

I created a form where users can add dependent information. The required information is grouped into a collection based on the answer they check mark. I want the "add another dependent" field to be repeated until "no" is selected as an answer. How can I make that field repeat itself without having to add it multiple times. Also, if yes is selected, I need the collection fields to be shown so they can fill out the required info. The attached shows the field I want repeated in yellow, without having to keep adding the field and making field rules to hide. (eg. If a user has 6 dependents, I don't want to have to add the field "add another dependent" 6 times).

Thanks,

Mui

2019-08-07_144405.png
0 0

Answer

SELECTED ANSWER
replied on September 30, 2019

Would adding another dependent just add another record to your collection? 

Because you can rename the "Add" button on your collection to something like "Click Here to Add an Additional Dependent".

Alternately, you could make some Javascript that clicked the Add button automatically when they selected Yes in your radio button - but that is a lot more complicated than it would be for the first suggestion.

0 0
replied on October 7, 2019

That is actually exactly what I ended up doing. My original problem was that I didn't want all the fields in the collection to repeat because it would be based on the "type of plan" what fields would show up to be filled. I ended up using field rules to do this inside of the collection. Thanks tho!

0 0

Replies

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

Sign in to reply to this post.