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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

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
    Microsoft Employee 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard