- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2018 08:17 AM
From Create New Record I would like to hide Work notes section. It only should visible whenever user create create the records.
Thanks in Advance
Solved! Go to Solution.
- Labels:
-
Scoped App Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2018 11:31 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2018 08:47 AM
Hi Bobby,
Please let me know if that works.
g_form.setSectionDisplay('Employee Location',false); Replace employee location with your section name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2018 09:06 AM
Not working
if(g_form.isNewRecord())
{
g_form.setSectionDisplay('Notes',false);
}
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2018 09:10 AM
Check are there any mandatory fields in the notes section. If so, please make it mandatory false before hiding the section
if(g_form.isNewRecord())
{
g_form.setMandatory('work_notes', false);
g_form.setSectionDisplay('Notes',false);
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2018 09:14 AM
No Mandatory.. In notes i have Activity and work notes.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2018 11:23 AM
I tried in my personal developer instance and it is working. A small note is that you have to input the section name in lower case letter in your instance and no special characters is allowed
if(g_form.isNewRecord())
{
g_form.setSectionDisplay('notes',false); Suppose if section name is "Notes", then you have to input as
"notes"
}
Scrreen shot Showing Section :
Screen shot hiding section