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

Community site session details

Session Id : NcWYl5Wp6dzQSneJqVLhkr
Power Apps - Building Power Apps
Unanswered

Disable a Button if the user did not select any value inside the dropdown

Like (0) ShareShare
ReportReport
Posted on 16 Sep 2021 21:37:50 by 3,502

I have a dropdown + button, now i want to enable the button only if the user select a value inside the dropdown, so inside the Button's Display mode i added this formula:-

 

do1.png

 

but the button will always be disabled.. any advice?

  • Ethan_009 Profile Picture
    4,838 Moderator on 17 Sep 2021 at 10:41:06
    Re: Disable a Button if the user did not select any value inside the dropdown

    Hi @johnjohn123 ,

    No problem,

    Use this then,

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

     

    For this, you will require 'AllowEmptySelection' property of Dropdown set as true

     

    Hope this helps

  • johnjohn123 Profile Picture
    3,502 on 17 Sep 2021 at 10:13:54
    Re: Disable a Button if the user did not select any value inside the dropdown

    @Ethan_Ri am using dropdpwn not combobox..

  • Ethan_009 Profile Picture
    4,838 Moderator on 17 Sep 2021 at 07:39:17
    Re: Disable a Button if the user did not select any value inside the dropdown

    Hi @johnjohn123 ,

     

    Use this on button property 'DisplayMode' insert this formula

    If(CountRows(ComboBox.SelectedItems) = 0, DisplayMode.Disabled, DisplayMode.Edit)

     

    Hope this helps.

  • Ram Prakash Profile Picture
    5,318 Super User 2025 Season 2 on 17 Sep 2021 at 05:50:12
    Re: Disable a Button if the user did not select any value inside the dropdown

    Hello @johnjohn123,

     

    I have created a Drop Down with Item as ["","1","2"]

    rampprakash_0-1631858115360.png

     

    in Display Mode of button

     

    rampprakash_1-1631858160689.png

     

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

     

    Check if the Drop Down Value is null, if null Disabled else Edit

     

    Please mark as Answer if it is helpful and provide Kudos


    Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
    Blog : https://microsoftcrmtechie.blogspot.com

     

  • Community Power Platform Member Profile Picture
    on 17 Sep 2021 at 05:24:36
    Re: Disable a Button if the user did not select any value inside the dropdown

    Hi @johnjohn123 ,

     

    I tried to recreate your use-case and here is a solution that seems to work based on what you have mentioned -

    1. Insert a combobox instead of a dropdown (Combobox1, in my example. If you want to have only a single value selected from a user, you can turn "Allow multiple selection" off
    2. The Button's DisplayMode can be set to this -

     

    If(ComboBox1.Selected.Value = Blank(),Disabled,Edit)

     

    • When there is no value selected, the button will be disabledsivaecl_0-1631856074573.png

       

    • When a value is selected, the button will go into Edit modesivaecl_1-1631856117969.png

    Please click Accept as solution if my post helped you solve your issue. If this was useful in some way, please give 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 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete