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 / simple syntax issue
Power Apps
Answered

simple syntax issue

(0) ShareShare
ReportReport
Posted on by 1,257 Super User 2024 Season 1

I know this is something simple I just can't get it LOL

 

trying to make button disabled if 

If(IsEmpty(colScan) And If(Zone.Selected.Title="xxx" || Zone.Selected.Title="abc",DisplayMode.Disabled,Edit)

 

There is a comma or a bracket or something in the wrong place.  I give up ! 🙂

Categories:
  • Verified answer
    Gerard Simpson Profile Picture
    2,987 Moderator on at

    @vffdd - try the following:

     

    If(
    IsEmpty(colScan) And (Zone.Selected.Title="xxx" || Zone.Selected.Title="abc"),
    DisplayMode.Disabled,
    DisplayMode.Edit
    )
  • vffdd Profile Picture
    1,257 Super User 2024 Season 1 on at

    That's it !  I knew someone much cleverer than me would know LOL

     Thank you very much 😀

  • Gerard Simpson Profile Picture
    2,987 Moderator on at

    No problem - I've been there! 😅

     

    Good luck with the rest of your build!

     

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 283

#3
Mohsin Ali Profile Picture

Mohsin Ali 221

Last 30 days Overall leaderboard