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

Unchecking / Resetting Checkboxes

Hi

When I click "Clear", can it also uncheck my checkboxes?

Currently "Clear" clears my collection, I would also like it to uncheck the checkbox
My OnSelect for "Clear" = Clear(FaultList)

ClearCheckBox.PNG

4 ACCEPTED SOLUTIONS

Accepted Solutions

This code on my button did not clear the checkbox

 

Clear(FaultList);
UpdateContext({varResetVerifyItem:true});
UpdateContext({varResetVerifyItem:false})

View solution in original post

As I have advised in my solution this variable "varResetVerifyItem" need to be set at Rest property of the checkbox.

 

I hope this resolved your issue if you see any challenge let me know I am always happy to help.

Regards,

Krishna
If this post helps, then please consider Accept it as the solution and give thumbs-up to help the other members find it more.


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Proud to be a Super User!

Regards,
KrishnaV
Business Applications MVP
Twitter | Linkedin | YouTube | GitHub
If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members / new members of the community.

View solution in original post

Did that solve the issue?

 

I hope this resolved your issue if you see any challenge let me know I am always happy to help.

 

Regards,

Krishna
If this post helps, then please consider Accept it as the solution and give thumbs-up to help the other members find it more.


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Proud to be a Super User!

Regards,
KrishnaV
Business Applications MVP
Twitter | Linkedin | YouTube | GitHub
If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members / new members of the community.

View solution in original post

Hi @JerryH ,

 

Add this code onVisible of the screen properties:

UpdateContext({varResetVerifyItem:true});
UpdateContext({varResetVerifyItem:false})

 

I hope this resolved your issue if you see any challenge let me know I am always happy to help.

 

Regards,

Krishna
If this post helps give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Proud to be a Super User!

Regards,
KrishnaV
Business Applications MVP
Twitter | Linkedin | YouTube | GitHub
If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members / new members of the community.

View solution in original post

9 REPLIES 9
Super User III
Super User III

Hi @JerryH ,

 

Resetting checkbox in Power Apps is little different follow the below steps:

  1.  On button click of clear (onSelect of the button property) add the below code

 

UpdateContext({varResetCheckbox:true});
UpdateContext({varResetCheckbox:false})

 

  • Now set this variable varResetCheckbox for checkBox to reset property of the checkbox

Here is the working model of the same.

reset checkbox.gif

I hope this resolved your issue if you see any challenge let me know I am always happy to help.

Regards,

Krishna
If this post helps, then please consider Accept it as the solution and give thumbs-up to help the other members find it more.

 


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Proud to be a Super User!

Regards,
KrishnaV
Business Applications MVP
Twitter | Linkedin | YouTube | GitHub
If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members / new members of the community.

Hi, Thank you.

Almost there.

My Clear button also clears the collection "FaultList"

This is what my code looks like:

 

Clear(FaultList); UpdateContext({varResetVerifyItem:true});
UpdateContext({varResetVerifyItem:false})

 

 

Great to know is there anything I can help you with this issue? if not I would request you to mark my reply as a solution so that others can use this.

 

Regards,

Krishna
If this post helps, then please consider Accept it as the solution and give thumbs-up to help the other members find it more.


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Proud to be a Super User!

Regards,
KrishnaV
Business Applications MVP
Twitter | Linkedin | YouTube | GitHub
If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members / new members of the community.

This code on my button did not clear the checkbox

 

Clear(FaultList);
UpdateContext({varResetVerifyItem:true});
UpdateContext({varResetVerifyItem:false})

View solution in original post

As I have advised in my solution this variable "varResetVerifyItem" need to be set at Rest property of the checkbox.

 

I hope this resolved your issue if you see any challenge let me know I am always happy to help.

Regards,

Krishna
If this post helps, then please consider Accept it as the solution and give thumbs-up to help the other members find it more.


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Proud to be a Super User!

Regards,
KrishnaV
Business Applications MVP
Twitter | Linkedin | YouTube | GitHub
If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members / new members of the community.

View solution in original post

Thank you

Did that solve the issue?

 

I hope this resolved your issue if you see any challenge let me know I am always happy to help.

 

Regards,

Krishna
If this post helps, then please consider Accept it as the solution and give thumbs-up to help the other members find it more.


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Proud to be a Super User!

Regards,
KrishnaV
Business Applications MVP
Twitter | Linkedin | YouTube | GitHub
If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members / new members of the community.

View solution in original post

Hello, 

If i have selected the checkbox, then i navigate to home screen and back again, then the checkbox becomes unchecked - perfect, however,  when i navigate elsewhere around my App and come back to this screen, the checkbox is still checked?

Any support will be appreciated.

Thanks, Jerry

Hi @JerryH ,

 

Add this code onVisible of the screen properties:

UpdateContext({varResetVerifyItem:true});
UpdateContext({varResetVerifyItem:false})

 

I hope this resolved your issue if you see any challenge let me know I am always happy to help.

 

Regards,

Krishna
If this post helps give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Proud to be a Super User!

Regards,
KrishnaV
Business Applications MVP
Twitter | Linkedin | YouTube | GitHub
If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members / new members of the community.

View solution in original post

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (33,462)