cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
maxandriola
Level: Powered On

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 Team
Community Support Team

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
SimonPiquer
Level 8

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?

 

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.

Community Support Team
Community Support Team

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
maxandriola
Level: Powered On

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
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 323 members 5,928 guests
Please welcome our newest community members: