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 / Enable save button, on...
Power Apps
Answered

Enable save button, only if checkbox is checked from gallery form.

(0) ShareShare
ReportReport
Posted on by 31

Hello everyone,

 

I have a form in gallery which has multiple rows. 
For each row I have one checkbox.
I need the form behavior like if any of the checkbox is checked then only enable the save button otherwise disable save button.
For this, On the `DisplayMode`  propoerty of the Save button I have added following simple logic:

If(CheckBox.Value = true, DisplayMode.Edit, DisplayMode.Disabled)

 But after this still there is one issue,

For ex:

I have 4 rows in my gallery form and I have checked all the four checkboxes from all the four rows one-by-one, then by above condition, Save button is enabled now.

But If I un-check any of the checkbox for any of the row then save button is getting disabled. But Ideally it should be be enabled coz other three checkboxes are still checked.

Any suggestions on above issue are most welcome.

Categories:
  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi @Being_Learner ,

    Please try using below formula on DisplayMode property of Save button -

    If(CountRows(Filter(Gallery19.AllItems, Toggle1.Value)) > 0,DisplayMode.Edit,DisplayMode.Disabled)

    Gallery19 is GalleryName and Toggle1 is the control name

    You can replace Toggle1.Value with Checkbox.Value

  • Verified answer
    Being_Learner Profile Picture
    31 on at

    Hello Everyone, 

     

    Ultimately, I found the solution, just modified the condition little bit as follow:

    If(
     !IsEmpty(Filter(Gallery.AllItems, Checkbox.Value = true)),
     DisplayMode.Edit,
     DisplayMode.Disabled
    )

      

     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 258

#3
Mohsin Ali Profile Picture

Mohsin Ali 231

Last 30 days Overall leaderboard