hide section Notes in incident form

Community Alums
Not applicable

How can I hide the Notes section in the incident form????

using a Client Script onLoad???

 

 

LeonardoMirand_0-1684352607078.png

 

2 ACCEPTED SOLUTIONS

Steven Parker
Giga Sage

You can hide it using the following onLoad Client Script:

 

function onLoad() {
   //Type appropriate comment here, and begin script below
   g_form.setSectionDisplay('notes', false);
}

 

 

StevenParker_0-1684353484115.png

 

Obviously you can put some If logic around it if you only want it hidden under certain conditions OR make it an onChange client script if you want to hide it when something changes.


Please mark this response as correct and/or helpful if it assisted you with your question.
Steven

View solution in original post

This article explains it...the first section in the yellow box:

http://servicenowguru.com/scripting/client-scripts-scripting/showhide-form-section/ 

 

If you configure the form layout, you can see all the sections (tabs) under the View Name - Default View.


Please mark this response as correct and/or helpful if it assisted you with your question.
Steven

View solution in original post

4 REPLIES 4

Steven Parker
Giga Sage

You can hide it using the following onLoad Client Script:

 

function onLoad() {
   //Type appropriate comment here, and begin script below
   g_form.setSectionDisplay('notes', false);
}

 

 

StevenParker_0-1684353484115.png

 

Obviously you can put some If logic around it if you only want it hidden under certain conditions OR make it an onChange client script if you want to hide it when something changes.


Please mark this response as correct and/or helpful if it assisted you with your question.
Steven

Community Alums
Not applicable

How did you get the name of this section????

This article explains it...the first section in the yellow box:

http://servicenowguru.com/scripting/client-scripts-scripting/showhide-form-section/ 

 

If you configure the form layout, you can see all the sections (tabs) under the View Name - Default View.


Please mark this response as correct and/or helpful if it assisted you with your question.
Steven

Hagos
Tera Contributor