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?
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
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.
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
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Tom_Gioielli 49 Super User 2025 Season 2
MVP-Daniyal Khaleel 46
CU23101130-0 17