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 / Multi-select drop down...
Power Apps
Answered

Multi-select drop down control OnChange property is not working as expected

(0) ShareShare
ReportReport
Posted on by 116

I’m setting a variable in the OnChange property of a multiselect dropdown control in my gallery to:

Set(NeedsSaved, true)

The DisplayMode of my SAVE button is set to:

If(NeedsSaved, DisplayMode.Disabled, DisplayMode.Edit)

I’m expecting the SAVE button to be disabled ONLY when the values in the multi-select drop down control are changed, however for some reason the SAVE button is always disabled.

 

If I clear the OnChange property of the multiselect dropdown the SAVE button is no longer disabled.

 

The variable is working as expected for single select dropdowns but not for this multiselect dropdown.

 

Hoping someone can help!

 

Thank you,

Jayne

Categories:
  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    Hi @JayneButton,

     

    The OnChange also runs when e.g. prefilling the combobox via the DefaultSelectedItems property. One approach you could take is looking for a difference in value between your current selection and default value:

    //OnChange property
    If(
     //Change <DefaultSelectedItemsCode> to the corresponding code used to fetch the default values
     //Change Value to another column name - if required
     Concat(Self.SelectedItems, Value, ",") <> Concat(<DefaultSelectedItemsCode>, Value, ","),
     Set(NeedsSaved, true)
    )

     

    Another approach documented here, involves the OnSelect property to set an initial variable to true (indicating that the user selected the control).

     

    If this solves your question, would you be so kind as to accept it as a solution & give it a thumbs up.

    Thanks!

  • JayneButton Profile Picture
    116 on at

    Hi @LaurensM 

     

    Problem solved. Thanks very much for the help.

     

    Jayne

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard