Hi all,
I am currently trying to reset multiple checkboxes to blank after loading a current page.
My current method is adding an UpdateContext({ClearCheckbox: true}) on the OnVisible, then adding ClearCheckbox on to the checkbox "Reset"
Anyone have some ideas they could share?
Thanks.
Solved! Go to Solution.
Hi @maxandriola ,
Do you want to reset multiple Checkboxes when you navigate to the target screen (which contains the multiple Checkboxes)?
Based on the formula you provided, I think there is something issue with it. I have made a test on my side, please take a try with the following workaround:
Set the OnVisible property of the target screen to following:
UpdateContext({ClearCheckbox: false});
UpdateContext({ClearCheckbox: true})
Set the Reset property of each Checkbox control within your Target screen to following:
ClearCheckbox
Please consider take a try with above solution, then check if the issue is solved.
Best regards,
Hi,
What is the Default property of your checkbox set to? If you have the Default set to 'false' you can simply put this in the OnVisible property of your screen:
Reset(Checkbox1)
Would that work?
Try
UpdateContext({ClearCheckbox: false}) UpdateContext({ClearCheckbox: true})
You have to actually change the value of the variable to trigger the reset IIRC.
Hi @maxandriola ,
Do you want to reset multiple Checkboxes when you navigate to the target screen (which contains the multiple Checkboxes)?
Based on the formula you provided, I think there is something issue with it. I have made a test on my side, please take a try with the following workaround:
Set the OnVisible property of the target screen to following:
UpdateContext({ClearCheckbox: false});
UpdateContext({ClearCheckbox: true})
Set the Reset property of each Checkbox control within your Target screen to following:
ClearCheckbox
Please consider take a try with above solution, then check if the issue is solved.
Best regards,
This worked!
Was not aware that I needed to set the variable for both true and false.
Thank you for the solution.
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
User | Count |
---|---|
209 | |
194 | |
82 | |
58 | |
38 |
User | Count |
---|---|
303 | |
249 | |
120 | |
83 | |
55 |