Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@melamriD365
Created May 26, 2021 14:07
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 melamriD365/d213bde5bf80dd65d911ae1e8bd4e256 to your computer and use it in GitHub Desktop.
Save melamriD365/d213bde5bf80dd65d911ae1e8bd4e256 to your computer and use it in GitHub Desktop.
Async Load Event Demo
if (typeof (MEA) == "undefined") { MEA = {} };
if (typeof (MEA.Account) == "undefined") { MEA.Account = {} };
if (typeof (MEA.Account.AccountForm) == "undefined") { MEA.Account.AccountForm = {} };
MEA.Account.AccountForm = {
onLoad: function (executionContext) {
var formContext = executionContext.getFormContext();
return new Promise((resolve, reject) => {
setTimeout(() => {
var formItem = formContext.ui.formSelector.items.get(1);
console.log(formItem);
formItem.navigate();
resolve("ok")
}, 2000)
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment