cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bartvd
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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (47,480)