How to hide the plus/minus signs above html fields

verdakosnett
Tera Expert

find_real_file.png

Does anyone know how to hide the -+ buttons that are above and below the html fields? Also, I wonder why one needs them when the field is read-only?

find_real_file.png

16 REPLIES 16

carolina2
ServiceNow Employee
ServiceNow Employee

theres a know issue reporting the plus and minus (+ / -) icons on read only html field still display


shloke04
Kilo Patron

Hi,



It can be done using DOM. Write an On Load Client Script on the desired Table on which you want to hide these "+ and -" signs as per the below mentioned script:



For example on the Knowledge form, we have a field called "Text" which is an HTMl field having these signs, so I am writing an On Load client Script on the Knowledge Table to hide them as per the script below:



Script:



function onLoad() {


    //Type appropriate comment here, and begin script below


    document.getElementById('sizer_plus_kb_knowledge.text').style.display='none';


  document.getElementById('sizer_minus_kb_knowledge.text').style.display='none';


}



find_real_file.png



This worked for me in my personal instance. Kindly test the same from your end.



Regards,


Shloke


Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

verdakosnett
Tera Expert

Doesn't see to work:


I tried using my table name:


document.getElementById('sizer_plus_x_64719_letters_tasker.text').style.display='none';


document.getElementById('sizer_minus_x_64719_letters_tasker.text').style.display='none';



also my form name


document.getElementById('sizer_plus_Tasker.text').style.display='none';


document.getElementById('sizer_minus_Tasker.text').style.display='none


Hi,



Can you tell me the Table Name and field Name on which you tried the code ?



Regards,


Shloke


Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke