Hello,
Scenario:
Issue:
Question:
Thank you very much!
Solved! Go to Solution.
Hi @ericonline
There is another way using context variables.
In the Checkbox.Reset add a context variable.
Example:
Now next to your ResetForm();
Add this code:
UpdateContext({ResetCheckbox:true}); UpdateContext({ResetCheckbox:false})
This will clear all checkboxes in Gallery when the form Resets.
Hi @ericonline
You can use
Reset(Checkbox_Name);
This will reset your checkbox to the default. Put it next to ResetForm() so it happens at the same time.
Hi MartynasJurkus,
Thank you for responding.
Unfortunately, this did not work:
Just to reiterate, this is a Checkbox within a Gallery. Reading the Reset docs it does say "You cannot reset controls that are within a Gallery or Edit form control from outside those controls....". I'm looking for another method.
Hi @ericonline
There is another way using context variables.
In the Checkbox.Reset add a context variable.
Example:
Now next to your ResetForm();
Add this code:
UpdateContext({ResetCheckbox:true}); UpdateContext({ResetCheckbox:false})
This will clear all checkboxes in Gallery when the form Resets.
Nice solution! Thank you very much for your time and expertise.
Thanks a million. I also had the checkbox inside the Gallery and I had an X button icon that I put there in case the user decided not to attach any file he/she just X-out and the checkboxes should have been cleared out and that what you advice did. I tried your advice before but I just typed this formula: UpdateContext({ResetCheckbox:true}). The second type I read your blog I type UpdateContext({ResetCheckbox:true});
UpdateContext({ResetCheckbox:false})
and it worked... Thanks!
Thanks a million.
I also had the checkbox inside the Gallery and I had an X button icon that I put there in case the user decided not to attach any file he/she just X-out and the checkboxes should have been cleared out and that what your advice did. I tried your advice before but I just typed this formula: UpdateContext({ResetCheckbox:true}). The second time I read your blog I typed both formulas on the onSelect property of the X button: UpdateContext({ResetCheckbox:true});
UpdateContext({ResetCheckbox:false})
and it worked... Thanks!
hi
thank you
it works
Thank-YOU! I searched for 4 hours looking for this.
Thanks it worked but why two times we've update the context?
User | Count |
---|---|
119 | |
86 | |
83 | |
74 | |
69 |
User | Count |
---|---|
215 | |
179 | |
140 | |
108 | |
83 |