cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Reset a checkbox to blank OnVisible

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.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

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,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Responsive Resident
Responsive Resident

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?

 

Super User
Super User

Try

UpdateContext({ClearCheckbox: false}) 
UpdateContext({ClearCheckbox: true}) 

You have to actually change the value of the variable to trigger the reset IIRC.

Community Support
Community Support

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,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

This worked!

Was not aware that I needed to set the variable for both true and false. 

Thank you for the solution. 

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (7,602)