Skip to main content
Community site session details

Community site session details

Session Id : d9Cer1pgC0EQ2Dsc7iuaHf
Power Apps - Building Power Apps
Answered

Button Selection Relying on Change to Dropdown

Like (1) ShareShare
ReportReport
Posted on 10 Jul 2024 11:29:35 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 10 Jul 2024 at 11:38:21
    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,663 Super User 2025 Season 1 on 10 Jul 2024 at 11:36:53
    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

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!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1

Loading started