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.

Remove "Variables" text in the Variable Editor

ceraulo
Mega Guru

Hi!

I added the Variable Editor to a "Variables" tab as shown in the screenshot. How do I remove the "Variables" text highlighted in yellow?

find_real_file.png

Thank you.

1 ACCEPTED SOLUTION

Omkar Mone
Mega Sage

Hi 

Create a onLoad Script on sc_req_item and add the below code (London specific)

 

find_real_file.png

 

function onLoad() {
var x=document.getElementsByClassName("veditor_header");
x[0].style.visibility = "hidden";

}

 

 

PS- The isolate Script checkbox on client script should be unchecked as this is a block added by servicenow to avoid DOM manipulations in client scripts.

 

Regards,

Omkar Mone.

www.dxsherpa.com

View solution in original post

3 REPLIES 3

Omkar Mone
Mega Sage

Hi 

Create a onLoad Script on sc_req_item and add the below code (London specific)

 

find_real_file.png

 

function onLoad() {
var x=document.getElementsByClassName("veditor_header");
x[0].style.visibility = "hidden";

}

 

 

PS- The isolate Script checkbox on client script should be unchecked as this is a block added by servicenow to avoid DOM manipulations in client scripts.

 

Regards,

Omkar Mone.

www.dxsherpa.com

This worked! Thank you.

Another question, is there a way to move the border up, closer to the "Variables" and "Next" tabs?

find_real_file.png

Hi 

I don't think but i suggest you to apply CSS in onload script itself.