Skip to main content
Community site session details

Community site session details

Session Id : /+cT8C7MdnYoX215Ws4v1u
Power Apps - Building Power Apps
Unanswered

Disable buttons if checkbox unchecked

Like (0) ShareShare
ReportReport
Posted on 19 May 2020 12:00:49 by 431

Hi,

If a colleague unchecks the checkbox/es, I would like the orange buttons to become disabled again, like when no check boxes are checked.

When we enter this screen: If(CountRows(FaultList) > 0, DisplayMode.Edit, DisplayMode.Disabled)

Then the user checks a box and they become enabled.

When the user unclicks a checkbox, then I would like the buttons to become disabled again please.

Thanks

 

 

Capture11.PNG

Categories:
  • WarrenBelz Profile Picture
    148,985 Most Valuable Professional on 23 May 2020 at 07:43:11
    Re: Disable buttons if checkbox unchecked

    @JerryH ,

    If @mdevaney 's post solved this for you, please mark it Accept as Solution to close the post and allow other users to more readily find it.

  • JerryH Profile Picture
    431 on 19 May 2020 at 12:56:32
    Re: Disable buttons if checkbox unchecked

    Apologies, I see it

     

  • JerryH Profile Picture
    431 on 19 May 2020 at 12:54:49
    Re: Disable buttons if checkbox unchecked

    Hi, Can you help me identify where to place the missing code?

     

    If(CountRows(FaultList > 0, VerifyItem.Value = true))
    DisplayMode.Edit,
    DisplayMode.Disabled
    )

  • mdevaney Profile Picture
    29,987 Moderator on 19 May 2020 at 12:44:12
    Re: Disable buttons if checkbox unchecked

    @JerryH 
    See my edited post above.  I missed the comparison > 0  and the comma.

     

     

    ---
    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."

  • JerryH Profile Picture
    431 on 19 May 2020 at 12:40:31
    Re: Disable buttons if checkbox unchecked

    Hi, its not liking something

     

    Capture123.PNG

  • mdevaney Profile Picture
    29,987 Moderator on 19 May 2020 at 12:18:00
    Re: Disable buttons if checkbox unchecked

    @JerryH 

    I suggest you COUNTROWS from the gallery of Assets On Site rather than the datasource itself.

     

    Place this code in the DisplayMode property of each orange button.

     

    If(
     CountRows(Filter(Gallery_AssetsOnSite.AllItems, Checkbox1.Value=true))>0,
     DisplayMode.Edit,
     DisplayMode.Disabled
    )

     

     

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading complete