Services Plugins FAQs

Reset all states after an action

good morning guys, I am faced with a problem. I have a form for generating a coupon. In this form it is possible to select the days in which the coupon is valid through the checkboxes.

Now I would like that after the subscription of the form, all the values ​​return to the starting value (without necessarily refreshing the page).
I can reset all the inputs, but not the checkboxes

My checkboxes take a dynamic value (ie I see if that particular day is included within a state (day_selected)).
After submitting the form I reset the value of that state, and this does it correctly. However, the checkboxes remain checked.
I add that the checkboxes are located inside a repeating group (and the individual checkboxes have a state that can be 0 or 1). I would like all states to be reset (I am attaching a picture of my attempts).



this solution unfortunately does not give the desired results, the checkboxes remain checked even if those days are not included in my repeating group

Hi, @edmondum!

Thanks for reaching out!

Ok, then add the RG into the Group and reset the data from this group. First, you reset the states and then reset the data from the Group. Here is workflow as a reference.





Hipe this helps!
Best, Julia.

1 Like