cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

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

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.

View solution in original post

2 REPLIES 2
Highlighted
Anonymous
Not applicable

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.

Highlighted
Community Support
Community Support

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.

View solution in original post

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,511)