Skip to content

Instantly share code, notes, and snippets.

@furkankaracan
Created September 7, 2022 13:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save furkankaracan/d2e78a22d3407da43d9c5b26b30620fe to your computer and use it in GitHub Desktop.
Save furkankaracan/d2e78a22d3407da43d9c5b26b30620fe to your computer and use it in GitHub Desktop.
How to use fireOnChange().
FireOnChangeTest: function (executionContext) {
var formContext = executionContext.getFormContext();
// You first update the value of the "myAttribute"
// Then You want to trigger onChange event of the "myAttribute".
formContext.getAttribute("myAttribute").setValue(newValue);
formContext.getAttribute('myAttribute').fireOnChange();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment