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 / If statement does not ...
Power Apps
Answered

If statement does not work as expected

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

While using powerapps, I used this function 'If(Dropdown1.Selected.Value = "", DisplayMode.Disabled, DisplayMode.Edit)'  in order to disable the dropdown display if the selected value of 'Dropdown1' (a different dropdown) was blank, meaning that nothing was selected. However, this function does not work, and I can not understand why. 

 

Categories:
I have the same question (0)
  • Verified answer
    PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @Anonymous ,

     

    Please try the below code. 

    If(IsBlank(Dropdown1.Selected.Value), DisplayMode.Disabled, DisplayMode.Edit)

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    For better understanding, the formula is:

    If(IsBlank(Dropdown1.Selected), DisplayMode.Disabled, DisplayMode.Edit)

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 324 Most Valuable Professional

#2
11manish Profile Picture

11manish 193

#3
Valantis Profile Picture

Valantis 138

Last 30 days Overall leaderboard