cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Resetting Checkbox Control

I've created a landing page that makes users agree to some Terms and Conditions before they navigate to the next page. Each checkbox has the following action set for OnCheck and OnUnCheck:

 

Oncheck = UpdateContext({Checkbox1:true})

OnUnCheck = UpdateContext({Checkbox1:false})

 

Additionally, I have a button that I've set the visible condition to the following: If(And(Checkbox1=true, Checkbox2=true, Checkbox3=true), true, false)

 

I would like the Checkbox control to reset to false (Unchecked) any time the screen is accessed. So if the user proceeds and then goes back the boxes are unchecked and the button is not showing. I've tried several things and I just cannot seem to get it right. Any help or insight anyone could provide would be greatly appreciated.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Solution Specialist
Solution Specialist

Re: Resetting Checkbox Control

Hi @voglejm,


Please watch this video.


On your OnVisible Property:
UpdateContext({Checkbox1:false});
UpdateContext({Checkbox2:false});
UpdateContext({Checkbox3:false})

Set the Default of each Checkbox to:

 Checkbox1 Default Property: Checkbox1
Checkbox2 Default Property: Checkbox2
Checkbox3 Default Property: Checkbox3

Cheers

View solution in original post

4 REPLIES 4
Highlighted
Solution Specialist
Solution Specialist

Re: Resetting Checkbox Control

Hi @voglejm,


Please watch this video.


On your OnVisible Property:
UpdateContext({Checkbox1:false});
UpdateContext({Checkbox2:false});
UpdateContext({Checkbox3:false})

Set the Default of each Checkbox to:

 Checkbox1 Default Property: Checkbox1
Checkbox2 Default Property: Checkbox2
Checkbox3 Default Property: Checkbox3

Cheers

View solution in original post

Highlighted
Community Support
Community Support

Re: Resetting Checkbox Control

Hi @voglejm ,

Do you want to reset the three Checkboxes when current screen is visible?

 

Based on the needs that you mentioned, I have made a test on my side, please take a try with the following workaround:4.JPG

 

5.JPG

 

6.JPG

Set the OnVisible property of the current screen which contains three Checkboxes to following:

UpdateContext({Checkbox1Value:false, Checkbox2Value: false, Checkbox3Value: false})

 

Set the Default property of the Checkbox1 to following:

Checkbox1Value

Set the OnCheck property to following:

UpdateContext({Checkbox1Value: true})

Set the OnUncheck property to following:

UpdateContext({Checkbox1Value: false})

Set the Default property of the Checkbox2 to following:

Checkbox2Value

Set the OnCheck property to following:

UpdateContext({Checkbox2Value: true})

Set the OnUncheck property to following:

UpdateContext({Checkbox2Value: false})

 

Set the Default property of the Checkbox3 to following:

Checkbox3Value

Set the OnCheck property to following:

UpdateContext({Checkbox3Value: true})

Set the OnUncheck property to following:

UpdateContext({Checkbox3Value: false})

 

Set the Visible property of the "Navigate" button to following:

If(Checkbox1Value= true && Checkbox2Value=true && Checkbox3Value=true, true, false)

Please check the following GIF screenshot for more details:Test.gif

 

 

 

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.
Highlighted
Helper I
Helper I

Re: Resetting Checkbox Control

@K-A-R-L  

 

Thank you so much for the help on this. I was almost there but you helped me get to the finish line.

 

-Justin

Highlighted
Helper I
Helper I

Re: Resetting Checkbox Control

@v-xida-msft 

 

Thanks for the help. You guys are the best. 

 

-Justin

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 (4,155)