Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Setting 'setSectionDisplay' function to 'true' is not showing the particular section's fields.

Revathi10
Tera Expert

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

4 REPLIES 4

Kalyani Jangam1
Mega Sage

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.

Hi @Kalyani Jangam1 ,

There are no duplicate section names.

Sandeep Rajput
Tera Patron
Tera Patron

@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.

Hi @Sandeep Rajput ,

I'm trying to display the entire section and the fields. The section heading is visible except the fields.