How to hide the plus/minus signs above html fields
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2017 07:28 AM
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?
- Labels:
-
Best Practices
-
Team Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2017 11:43 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2017 06:42 AM
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';
}
}