cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Community Support
Community Support

Re: Reset a checkbox to blank OnVisible

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
Highlighted
Responsive Resident
Responsive Resident

Re: Reset a checkbox to blank OnVisible

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?

 

Highlighted
Super User
Super User

Re: Reset a checkbox to blank OnVisible

Try

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

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

Highlighted
Community Support
Community Support

Re: Reset a checkbox to blank OnVisible

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

Highlighted
Frequent Visitor

Re: Reset a checkbox to blank OnVisible

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,698)