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

verdakosnett
Tera Expert

Client. I think there is a version issue. If you read the first response at the top from someone at Servicenow, they say there is a problem with this. BTW, is your html field read-only?


Here is how my colleague solved this problem:


function onLoad() {


    //Create a list of html fields in the variable elementsToHide


  var elementsToHide = "tasker_family,executive_summary,author_s_executive_summary,x_comments,tasker_history,tasker_history_concurrence,tasker_history_reviews,tasker_attachment_history,notification_history,comment_history";


  var myList = elementsToHide.split(',');


  for (var i = 0; i< myList.length;i++) {


  var ele = g_form.getElement(myList[i]);


  if (ele)


  ele.parentElement.children[0].style.display='none';


  }


}


find_real_file.png