Hide section in demand form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2024 06:02 AM
Hi
can some one help me with a code to hide section (questionnaire) in demand form.
UI policy or client script ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2024 06:10 AM
HI @prash4 ,
It would be a UI policy.
For example, to hide the "Incidents by Same Caller" related list on the incident form.
Use the script below:
g_form.hideRelatedList('REL:70e80f390a0a0b1b0035a51d8bbfd32c');
Use script section on UI policy.
Please follow the link:
https://servicenowguru.com/scripting/client-scripts-scripting/hiding-related-lists-embedded-lists/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2024 06:13 AM
Here’s how to hide a form section.
g_form.setSectionDisplay('<section_name>', false);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2024 07:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2024 07:08 AM
form section: this i need to hide on demand form