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 / Set DisplayMode proper...
Power Apps
Answered

Set DisplayMode property of button to Disabled when text input fields in gallery are blank

(0) ShareShare
ReportReport
Posted on by 116

In my gallery I want the DisplayMode property of my AddIcon to be disabled when required fields are blank so another row in the gallery cannot be added.

 

I have tried the following formula but the icon does not become disabled.

If(
 IsBlank(InputServiceProductDescription)
 And IsBlank(InputPartNumber)
 And IsBlank(InputQty)
 And IsBlank(InputPrice)
 And IsBlank(CurrencyDropdown),
 DisplayMode.Disabled,
 DisplayMode.Edit
)

Not sure where I am going wrong.

Categories:
  • Verified answer
    v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @JayneButton ,

     

    Are "InputPartNumber", "InputQty" names of text input? If so, please add .Text after text input and .Selected.Value after dropdown.

     

     

    If(
     IsBlank(InputServiceProductDescription.Text)
     And IsBlank(InputPartNumber.Text)
     And IsBlank(InputQty.Text)
     And IsBlank(InputPrice.Text)
     And IsBlank(CurrencyDropdown.Selected.Value),
     DisplayMode.Disabled,
     DisplayMode.Edit
    )

     

     

    In addition, if you want to disable the control if one of the required fields is empty, you can use Or or ||.

     

    Best regards,

    Rimmon

  • JayneButton Profile Picture
    116 on at

    Thank yo so much for the help with this! It's greatly appreciated 🙂

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 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard