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

Reseting Gallary checkboxes results in having to click twice to set checkbox to true

I am having a gallary with 3 values and checkboxes.

When the input has been given i do a reset of all fields, so the user can fill in the form again.

 

This works fine, exept for the checkboxes.

I added a test button with reproduces this issue. The code behind the button is : 

UpdateContext({gblResetCheckBoxes: true});
ClearCollect(
    colTargetAudienceSelected,
    Filter(
        galTargetAudience.AllItems,
        chkTargetAudience.Value = true
    )
);
UpdateContext({gblResetCheckBoxes: false})

The checkbox default : false and the reset : gblResetCheckBoxes

 

When i click the button, all checkboxes are indeed unchecked. However, to check the boxes again, i have to press twice on the buttons that were previously checked.

 

Any help is greatly appriciated.

0 REPLIES 0

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

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,936)