- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2016 02:53 PM
I know that you can go into System Properties > UI Properties and edit the 'Configures the editing toolbar' sections to choose what show up, but it looks like this will affect other parts of the system instead of just the app I am working in.
We only want to remove it on one form for now. Right now I have this HTML field being populated with the contents of the KB article being attached to the ticket, and we are going to be sending the contents of the field to the caller in an email, and we want the user to be able to see what it will look like. (I had used the regex .replace() scripts floating around here remove the HTML tags that came up when the KB contents were copied into a regular string field in plain text, but that was inadequate). I think this is the
Is there a way to do this, maybe with a client script?
P.S. I have just over a month's worth of experience with ServiceNow, so let me know if I am posting this in the wrong place or something
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2016 03:21 PM
First thing that comes to mind is an on load client script.
function onLoad() {
var sheet = window.document.styleSheets[0];
sheet.insertRule('.mce-toolbar-grp { display: none !important; }', sheet.cssRules.length);
sheet.addRule('.mce-toolbar-grp ', 'display: none !important;', -1); // IE likes to be different
}
Give that a shot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-17-2016 07:38 AM
Geoffrey,
That is exactly what I need to do but I'm confused about how to enter the HTML you want once we choose the variable type UI Page on the Edit Variable page. Do I need to create a UI Page somewhere else and reference it on the Edit Variable page?
Todd Evans
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2016 06:29 AM
Yes, you would put the html into a ui page, and then reference that from the ui page field on your record producer. You did say the html would be read-only (so I assumed you did not want the user to be able to edit it).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-01-2017 01:44 AM
Hello - have any of you managed to get this "hide html toolbar" and read Only on the Service Portal?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2017 07:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2018 05:49 AM
The cleanest way to do it is to add the "Admin" Role to the "Create Roles" field, mostly like hidden so you will need to display, works in Service Portal as well.