Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

How can I disable my button based on selected Values?

(0) ShareShare
ReportReport
Posted on by

Hi All,

 

I am looking for a way to disable the displaymode of my Submit button based on the following conditions:

1) If 'Other' is selected in the drop down list of Combo Box.

2) If no item is selected in the drop down list e.g. when someone loads the app it will show disabled till they select an option.

 

What is the easiest to go around this please

 

Config :

ComboBox1.Selected.Value

 

Masum172_0-1679322205950.png

 

Categories:
  • mmollet Profile Picture
    mmollet 3,187 on at
    Re: How can I disable my button based on selected Values?

    Make your viewmode on the button the following:

    If(dropdown1.selected.value = "Other" And dropdown2.selected.value = "Nothing", ViewMode.Disabled, ViewMode.Edit)

     

    If by nothing you mean that the dropdown is empty and nothing was selected then change the dropdown2.selected.value = "Nothing" to IsBlank(dropdown2) and this should work. You will have to make sure that the defualt value for the dropdown is blank for this to work of course.

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,475

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,767

Leaderboard