- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-07-2022 03:50 AM
Hi,
I am facing an issue as below.
there's a form. it has two sections .
- Inofrmation section
- Closure information
So, I need to hide this closure information section only when record creation.
but when existing record opens closure information section should be there.
Is anyone has an idea how to achieve this.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-07-2022 03:52 AM
Hi
Check the below link it give the details
https://community.servicenow.com/community?id=community_question&sys_id=8141dfe9dbdcdbc01dcaf3231f9619d5
function onLoad() {
if (g_form.isNewRecord()) {
g_form.setSectionDisplay('SectionName', false);
}
else{
g_form.setSectionDisplay('SectionName', true);
}
}
Please Mark the answer if correct/helpful , if it helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2025 12:57 AM