Setting 'setSectionDisplay' function to 'true' is not showing the particular section's fields.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2024 02:59 AM
Hi,
I am using an onLoad client script and here I'm setting the setSectionDisplay() to true.
On Service Portal when I reload the page, the fields under that section are not being displayed and only the section heading is present.
Note that the fields under that section are read-only.
I don't want to add setDisplay() true for each field to make it visible since there is quiet a lot of fields to be displayed.
Could you please suggest what can be done here.
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2024 12:07 AM
Hi @Revathi10 ,
Please confirm you have duplicate section heading name. If we have duplicate section heading then field will hide but section name as it is.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2024 01:46 AM
Hi @Kalyani Jangam1 ,
There are no duplicate section names.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2024 01:10 AM
@Revathi10 Please refer to this support article https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0696583#:~:text=There%20could.... which talks about the reasons behind not hiding the fields when hiding a section.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2024 01:50 AM
Hi @Sandeep Rajput ,
I'm trying to display the entire section and the fields. The section heading is visible except the fields.