Skip to content

Instantly share code, notes, and snippets.

@furkankaracan
Last active October 10, 2022 08:50
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/6e141f1a8ac3a9ac27456eb5f2e2034f to your computer and use it in GitHub Desktop.
Save furkankaracan/6e141f1a8ac3a9ac27456eb5f2e2034f to your computer and use it in GitHub Desktop.
projectTaskSection: function (executionContext) {
let formContext = executionContext.getFormContext();
//get tab
let tabObj = formContext.ui.tabs.get("tab_name");
//get section
let sectionObj = tabObj.sections.get("section_name");
//show the tab
tabObj.setVisible(true);
//show the section
sectionObj.setVisible(true);
//hide the tab
//hide the section
tabObj.setVisible(false);
sectionObj.setVisible(false);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment