setDisplay not working in client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2023 05:15 AM
Hi,
I'm trying to hide the created and created by fields on newly creating record in custom scope table. It is not working.But when i applied setVisible, those fields are hidden but space is creating on the form. Is this scope issue ?
g_form.setDisplay('sys_created_on', false);
g_form.setDisplay('sys_created_by', false);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2023 05:24 AM
Hi @Rakesh50
You can configure the form layout and remove that fields from form.
Is there any specific need you are hiding with script ...??
ServiceNow Developer
I know one thing, and that is that I know nothing.
- Socrates
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2023 06:43 AM
Yes @Vishal Birajdar After submitting the request we need these fields info on record
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2023 05:26 AM
share the screenshots.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2023 06:43 AM