web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Resetting a gallery ch...
Power Apps
Unanswered

Resetting a gallery checkbox

(0) ShareShare
ReportReport
Posted on by 156

I have a gallery and patching to SharePoint, inside there is a checkbox and needing to and check after the patch button is pressed. ?I have set a Reset variable to other fields but not sure how to "uncheck" the checkbox.

 

 

Set(fmsVal,Blank());Set(infraVal,Blank());Set(eucVal,Blank());Clear(imgColl);Set(resetVar,false);Set(resetVar,true);Reset(AddMediaButton1_1)=true;

 

 

Any help would be appreciated

Thanks

Categories:
I have the same question (0)
  • v-yujincui-msft Profile Picture
    on at

    Hi @mezcalbean ,

     

    Sorry, I'm a little confused. Do you want to change the value of a column through a checkbox?

    If so, maybe you could try the following.

     

    OnCheck:

    Patch(DateSource,ThisItem,{ColumnName:true})

    OnUncheck:

    Patch(DateSource,ThisItem,{ColumnName:false})

    Default:

    ThisItem.ColumnName

    vyujincuimsft_0-1664785276134.jpegvyujincuimsft_1-1664785291263.png

    vyujincuimsft_2-1664785297675.png

     

     

    Best Regards,

    Charlie Choi

  • Verified answer
    adgkred Profile Picture
    228 on at

    Hey, if I understand correctly you want to uncheck all boxes when pressing a button. In this case you can set the "Reset" property of the boxes to a specific variable:

    adgkred_0-1664787681504.png

    And then set the on the "OnSelect" property of you button you can put:

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

    The first line will set the var to "true" and thus uncheck all the boxes of the galley. The second line immediately reset the var to "false" so if you recheck boxes and reclick on the button the process will work again the boxes will once again be unchecked. 

  • mezcalbean Profile Picture
    156 on at

    Hi @adgkred @v-yujincui-msft 

     

    I am using a gallery to select items form a SP list, in that gallery I have a check box but when the data is submitted  to SP the checkbox remains and and want to reset it or uncheck it

     

    Thanks

  • adgkred Profile Picture
    228 on at

    The steps I explained above should be able to do that 😀

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard