web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Hide button based on v...
Power Apps
Answered

Hide button based on value in dropdown

(0) ShareShare
ReportReport
Posted on by 519

I have a dropdown field called IsSubmission_IIN and it is a Yes/No field.  A button is also on the form that is hidden, if the dropdown field is blank OR if the field value is No.  This is the formula I have on the visible property of the button:

If(IsBlank(IsSubmission_IIN),true,false)Or If(IsSubmission_IIN.Selected.Value="Yes",true,false).  

 

This seems to be working in preview mode of the app but once I publish the app and try it on a form, the form loads with the hidden button already displayed, and only becomes hidden if I change the value in the dropdown to No, or if I remove the value and leave it blank again.  I'm not sure what can be causing this behavior.

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,084 Most Valuable Professional on at

    Hi @joshieboy ,

    You just need this

    Len(IsSubmission_IIN.Selected.Value)=0 || IsSubmission_IIN.Selected.Value="No" 

     

    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.

  • joshieboy Profile Picture
    519 on at

    Hi @WarrenBelz - thanks for your prompt response.  I am getting the same behavior with the above formula.  The Yes/No field is a choice field from SharePoint.  I'm not sure if that makes a difference.  But when its blank the button still shows, it hides if its set to No, and shows if it sets to Yes.  The blank is the only issue where it should also hide the button

  • Verified answer
    WarrenBelz Profile Picture
    153,084 Most Valuable Professional on at

    Hi @joshieboy ,

    I must admit I struggled a bit with exactly what you needed - this should do it if you simply want to show it if the dropdown is "Yes"

    IsSubmission_IIN.Selected.Value="Yes" 

     

    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.

  • joshieboy Profile Picture
    519 on at

    Ah yes yes @WarrenBelz - I can't believe this was so simple.  Thank you.  Works well now.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard