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

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested answer

How to trigger OnChange event when the field is updated through Plugin

(0) ShareShare
ReportReport
Posted on by 35

Hi all

I have registered on change event on a field and I am updating that field using the plugin, but the onchange event is not triggering even when the field is updated.

Can anyone help me with this?

I have the same question (0)
  • Suggested answer
    Pankaj Gogoi Profile Picture
    3,177 on at
    RE: How to trigger OnChange event when the field is updated through Plugin

    Hi,

    The onChange event usually occurs when the data in a form field has changed and focus is lost. This event also occurs when data changes on the server are retrieved to update a field when the form is refreshed, such as after a record is saved.

    When the plugin is triggered? Once the form is saved and refreshes, the field value will be changed which should trigger the onChange. You can try using the fireOnchange,

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

    Best Regards,

    PG

  • Ria roy Profile Picture
    35 on at
    RE: How to trigger OnChange event when the field is updated through Plugin

    Hi Pankaj,

    Thanks for your response.

    I need to call the onchange event without refreshing the form when the field is updated through the plugin.

  • Pankaj Gogoi Profile Picture
    3,177 on at
    RE: How to trigger OnChange event when the field is updated through Plugin

    when you save the form, your plugin is triggered and after save the form reloads. Are you updating this field from another form.

    In order for the OnChange event to trigger, the field should know something changed else it will not trigger.

    You can shift the onChange logic to the plugin code.

    Best Regards

    PG

  • Ria roy Profile Picture
    35 on at
    RE: How to trigger OnChange event when the field is updated through Plugin

    I am refreshing the form using onchange event because the update in the plugin doesn't call refresh event.

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 49 Super User 2025 Season 2

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 46

#3
CU23101130-0 Profile Picture

CU23101130-0 17

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans