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 / Combox OnChange Property
Power Apps
Answered

Combox OnChange Property

(0) ShareShare
ReportReport
Posted on by 173

I have one button and one combox, the button is greyed out by default, and when user selects something from the dropdown list, the button should be available, however the below function didn't work as expected, please advise. Thanks

 

 

If(IsBlank(RecordingAccess.SelectedItems.DisplayName),Button1.DisplayMode.Disabled,Button1.DisplayMode.Edit)

 

 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    154,966 Most Valuable Professional on at

    Hi @sdnd2000 ,

    If you put this on the DisplayMode of the Combo Box, it should work.

    If(
     IsBlank(RecordingAccess.Selected.DisplayName),
     DisplayMode.Disabled,
     DisplayMode.Edit
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Verified answer
    eka24 Profile Picture
    20,925 on at

    In the displayMode property of the button ;

    If(IsBlank(RecordingAccess.Selected.DisplayName) || IsEmpty(RecordingAccess.SelectedItems),DisplayMode.Disabled,DisplayMode.Edit)

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • sdnd2000 Profile Picture
    173 on at

    Hi, @eka24 

    It works, but why do I have to set the button display mode for this case ? I thought it is enough to set the combox ? 

  • eka24 Profile Picture
    20,925 on at

    I understood your request is to change the display mode of the button based on the Combobox. 

    If that is not the case let me know. What are you disabling? Button or Combobox?

     

    If the button, then the formula I gave is ok as you have confirmed

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • sdnd2000 Profile Picture
    173 on at

    Hi, @eka24

    yes, your formula is fine. 

    My question is why I can not put the formula in the onChange event of the combox? 

  • eka24 Profile Picture
    20,925 on at

    I answered in the previous reply that it depends on what you want to disable. In your case you want to disable or enable the button, so it should be placed on the displaymode of the button and not the Combobox. I hope it clear.

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 510

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Vish WR Profile Picture

Vish WR 281

Last 30 days Overall leaderboard