how to hide custom section ?

eyal abu hamad
Mega Sage

hey, I want to hide a custom section in project form, my problem is that I cannot find the name of the section
tried with sys_id but didnt work

g_form.setSectionDisplay('fa05ec91c3003100f67cb2c712d3ae35', false);
5 REPLIES 5

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @eyal abu hamad 

 

What do you mean can't hide the name of the section? 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

the real name and not the display name.
the one that I need to use in the script

Hi @eyal abu hamad 

 

https://www.servicenow.com/community/spm-forum/how-to-hide-form-sections/m-p/2789504#:~:text=This%20...

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Tushar
Kilo Sage
Kilo Sage

Hi @eyal abu hamad  - did you check the  sys_ui_section table, find the section you want to hide.

The "Name" column contains the real name you need.

g_form.setSectionDisplay('section_name_here', false);

 

Thanks,

Tushar