- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2023 04:32 AM
Hi everybody! I would like to hide some custom tab on my task form until it reaches some states, and after make it appear on the form. Is there a way without script for do that? Or it is possible anyway? If it's possible only with script, could somebody tell me which one should I use?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2023 05:06 AM
Hi @Alessia Russo ,
Without Scripting not possible!!
function onLoad() {
// var sections = g_form.getSectionNames();
// alert(sections);
if (g_form.isNewRecord()) {
g_form.setSectionDisplay('external_analysis', false);
}
else{
g_form.setSectionDisplay('external_analysis', true);
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2023 05:33 AM
Hi @Community Alums could you explain me better the script pls?
// var sections = g_form.getSectionNames();
// alert(sections);
why this two are in comment?
if (g_form.isNewRecord())
here I should put in which state I want the tab to be hide or show?
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2023 05:36 AM
You can uncomment with the name of the section.
for //alert(sections); it's to check if the script is processing till here or not.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2023 06:33 AM
@Community Alums I've tried but it didn't work, so I try this way:
but everytime the task state changes in 127 it didn't hide