Skip to content

Instantly share code, notes, and snippets.

@furkankaracan
Created September 9, 2022 10:33
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save furkankaracan/431f9f458b2d4df31a30f6e84b197039 to your computer and use it in GitHub Desktop.
How to get formContxet
function FormContextTest(executionContext) {
var formContext = executionContext.getFormContext();
var attr1 = formContext.getAttribute("attr1").getValue();
formContext.getAttribute("attr1").setValue("newValue");
var entityId = formContext.data.entity.getId();
var formType = formContext.ui.getFormType();
formContext.getControl("attr1").setNotification(notification, "attr1Notification");
formContext.getControl("attr1").clearNotification("attr1Notification");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment