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 / How to set default val...
Power Apps
Answered

How to set default value of check box (always ticked at start screen)

(0) ShareShare
ReportReport
Posted on by 59

Hi,

I try to put checkbox input on gym booking card collect and card return (patching) on galery. My issue everytime new row coming to galery , the checkbox of collection (card collected) default always check
Anyhow how to set default of the checkbox ?
this my formula for 
Oncheck :

Patch('Gym Pass',BrowseGallery5_1.Selected,{Collection:Checkbox1.Value})

Onuncheck:

Patch('Gym Pass',BrowseGallery5_1.Selected,{Collection:Checkbox1.Value})

default:

If(ThisItem.Collection=true,true,false)

 Note :
Gym Pass = share list point; Collection = column name in SP List (i use yes/no)
data success patch when tick/untick 
Capture.JPG

Categories:
I have the same question (0)
  • Verified answer
    mdevaney Profile Picture
    29,991 Moderator on at

    @laurent_rio 
    What code are you using to add a new record to the gallery's collection?  Your code above looks good so my theory is your code to add new records is giving the field 'Collection' a value of true by default.  One idea to fix this is to set the default value to "false" in the SharePoint column.  Another is to PATCH a "false" value when creating the record.

    Please share your 'new record' code so I can advise on what to do.

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#2
11manish Profile Picture

11manish 205 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard