Hello,
I have a form with repeating multiselect. So when the form is sent, I’d like to reset all the fields but repeated items value variables are not accessible, how can I proceed ?
Thanks !
Hello,
I have a form with repeating multiselect. So when the form is sent, I’d like to reset all the fields but repeated items value variables are not accessible, how can I proceed ?
Thanks !
Hi. You usually should have the results stored in a variable that is bound as an initial value. Then you could reset that. A ton of people actually come to consult to me about this, I think I definitely will make a video about this somewhere in the future, it is such a frequent topic
Thanks Broberto for your quick answer.
I think I did not understand your solution
I can’t see any storage variable for the multiselect. So I use a onChange trigger to get the event value of each selection in each repeated multiselect input.
I try to bind the initial value of the multiselect to a variable and then reset it when submitting the form, but nothing happens (seems logical, the initial value is only before selections no ?)
You need to bind this to the Init value
of your select. This way when you reset the variable, the value of the input resets as well.
I created a button to reset the value (test purpose), but it doesn’t work, did I miss something ?
Screen record here : Watch Enregistrement 2024-11-15 110543 | Streamable
maybe this tutorial can be helpful. it’s with checkboxes but you can apply the same principle to any other input
Thank you Dorilama, solved : it was a variable type issue, it needs to be an array and not a text type
And also : Array type for initial value of text input, and Object type for radio buttons