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 / Disable Button Selection
Power Apps
Answered

Disable Button Selection

(0) ShareShare
ReportReport
Posted on by 5

I am new to Power Apps, help would be appreciated.

 

I created the below buttons and out of the 3 buttons "Small, Medium & High" - I want to disable the 2 options after picking anyone.

So if"Medium" is selected - Small & High should be disabled.

 

 

Categories:
I have the same question (0)
  • Ethan_009 Profile Picture
    4,838 Moderator on at

    Hi @Kay_Sin ,

     

    There are multiple ways,

    You can do it using variable that stores button selected value.

    Step 1: Initialize a variable as Blank when you load your screen

     

    //Initialize variable for OnVisible property of Screen or as per choice
    UpdateContext({varComplexitySelection: Blank()});
    
    //For OnSelect of Button 'Small'
    UpdateContext({varComplexitySelection: "Small"});
    
    //For OnSelect of Button 'Medium'
    UpdateContext({varComplexitySelection: "Medium"});
    
    //For OnSelect of Button 'Big'
    UpdateContext({varComplexitySelection: "Big"});

     

     

    For Disabling Buttons

     

    //On DisplayMode property of button 'Small'
    If(
     IsBlank(varComplexitySelection) || varComplexitySelection = "Small",
     DisplayMode.Edit,
     DisplayMode.Disabled
    )
    
    //On DisplayMode property of button 'Medium'
    If(
     IsBlank(varComplexitySelection) || varComplexitySelection = "Medium",
     DisplayMode.Edit,
     DisplayMode.Disabled
    )
    
    //On DisplayMode property of button 'Big'
    If(
     IsBlank(varComplexitySelection) || varComplexitySelection = "Big",
     DisplayMode.Edit,
     DisplayMode.Disabled
    )

     

     

    Hope this helps

  • Verified answer
    mmollet Profile Picture
    3,187 on at

    OnVisible of screen: 

    UpdateContext({small: false, medium: false, large: false})

     

    buttons on select: 

    small -> UpdateContext({medium: !medium, large: !large})

    medium -> UpdateContext({small: !small, large: !large})

    large -> UpdateContext({medium: !medium, small: !small})

     

    display mode for buttons

    small -> If(small, DisplayMode.Disabled, DisplayMode.Edit)

    medium -> If(medium, DisplayMode.Disabled, DisplayMode.Edit)

    large -> If(large, DisplayMode.Disabled, DisplayMode.Edit)

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 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 96 Super User 2026 Season 1

Last 30 days Overall leaderboard