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

Checkbox in gallery not resetting properly

I am developing a checklist-based assessment with powerapps. Currently, I am using a Gallery to show the questions and checkboxes instead of a form, because the questions are subject to changes in the future so a Gallery would show the edited questions more easily. Which also means I have set global variables to reset the checkboxes.

By default, the checkboxes are to be set to as Checked, so for my "Start New Asssessment" button the Onselect is Set(ResetCheckbox1,true) and for the checkboxes the Default is ResetCheckbox1 . However, the issue is that after testing one trial run, the Checkbox1 controls do not reset and remain unchecked even after selecting the "Start New Asssessment" button. BUT strange enough, when i manually re-type 'ResetCheckbox1' into the Default property of the checkboxes, the checkboxes immediately go back to being checked. 

 

This is a strange issue, can anyone explain why despite setting a global variable as true, the coresponding checkboxes do not reset to be true UNLESS i re-type out the global variable in the checkboxes' Default property.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Checkbox in gallery not resetting properly

Hi @gloomypika ,

Based on the issue that you mentioned, I think there is something issue with the Set formula you used in your fomrula.

 

I have made a test on my side, please take a try with the following workaround:14.JPG

Set the OnSelect property of the "Start New Asssessment" button to following:

Set(ResetCheckbox1, false); /* <-- Add formula here */
Set(ResetCheckbox1, true)

Set the Default property of the Checkbox1 in your Gallery to following:

ResetCheckbox1

Please take a try with above solution, 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.
2 REPLIES 2
shailendra74
Level 8

Re: Checkbox in gallery not resetting properly

Hi @gloomypika 

 

Can you set the "reset" property of the checkbox to true and try again.

 

You can call Reset(CheckBoxName), to reset the checkbox

 

Thanks.

Community Support Team
Community Support Team

Re: Checkbox in gallery not resetting properly

Hi @gloomypika ,

Based on the issue that you mentioned, I think there is something issue with the Set formula you used in your fomrula.

 

I have made a test on my side, please take a try with the following workaround:14.JPG

Set the OnSelect property of the "Start New Asssessment" button to following:

Set(ResetCheckbox1, false); /* <-- Add formula here */
Set(ResetCheckbox1, true)

Set the Default property of the Checkbox1 in your Gallery to following:

ResetCheckbox1

Please take a try with above solution, 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.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Users Online
Currently online: 45 members 4,658 guests
Please welcome our newest community members: