Skip to content

Instantly share code, notes, and snippets.

@furkankaracan
Created June 25, 2022 07:00
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/7e82bdf740c48b9156a27734f42377eb to your computer and use it in GitHub Desktop.
Save furkankaracan/7e82bdf740c48b9156a27734f42377eb to your computer and use it in GitHub Desktop.
disableForm: function (executionContext) {
let formContext = executionContext.getFormContext();
let formControls = formContext.ui.controls;
formControls.forEach(control => {
if (control.getName() != "" && control.getName() != null) {
control.setDisabled(true);
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment