web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Multi-Select optionset onchange not working?

(0) ShareShare
ReportReport
Posted on by 200

Hi All,

Does anyone experience the multi-select onchange not working?

I tried having as simple as function RunOnchange() {  alert("RUN"); } but this doesn't work onchange of multiselect field.

Is there any work around to have it work onchange?

Thanks a lot.

Orchid

I have the same question (0)
  • cloflyMao Profile Picture
    25,210 on at

    Hi Orchid,

    Try to bind onChange event to your multiselect field when form onLoad.

    https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/attributes/addonchange

    While also try to execute your RunOnchange function at form onLoad to test whether javascript or client API works on your form.

    Regards,

    Clofly

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    Hi,

    Your function should work ,seems you are doing wrong somewhere, may be JS library or you might not publish form  or you missed to enable JS function in the event properties.

    Look here I create one JS web resource and copy paste your function and add webresource to the account form library.

    pastedimage1573235513674v1.png

    Once I added I attached it to onchange of multi select fields. Make sure you select true.

    pastedimage1573235575430v3.png

    Dont forget to do publish form.

    pastedimage1573235642733v4.png

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 72 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 29 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans