Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Button Selection Relying on Change to Dropdown

(1) ShareShare
ReportReport
Posted on by 63

Is there a way that I could restrict this button from completing its function if the user hasn't selected/changed the dropdown value? This way the user wouldn't be able to forget to alter the dropdown before pressing the button. Thank you.

  • Verified answer
    anandm08 Profile Picture
    1,936 Super User 2025 Season 1 on at
    Re: Button Selection Relying on Change to Dropdown

    hi @PBCBoss ,

    you can do that so by writing this:

    // onVisible of the screen 
    Set(dropdownChange,false)
    // onChange of dropdown
    Set(dropdownChange,true)
    // displaymode of button
    If(dropdownChange,DisplayMode.Edit,DisplayMode.Disable)

     

  • Verified answer
    DBO_DV Profile Picture
    4,534 Super User 2025 Season 1 on at
    Re: Button Selection Relying on Change to Dropdown

    Yes it's quite easy. You could do either onChange or onSelect (Whatever you prefer)

    Set(varClicked,true)

     

    And in the Button on Displaymode

    If(varClicked, Displaymode.Edit,Displaymode.Disabled)

    and On select of the Button you can set varClicked to false

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,605 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,946 Most Valuable Professional

Leaderboard