- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-16-2015 06:05 AM
I need to hide the info button that shows next to the reference field for caller_id on a record producer that clients will use to submit ESS tickets
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-22-2015 06:54 AM
It may not appear on the form until it's populated, so you might have to run the script again onchange of that variable. You can see that it's not all that scalable, so I would avoid doing this unless you have to.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-16-2015 06:23 AM
I don't think there's a great way to do it just for a single record producer other than DOM manipulation.
Customizing the Reference Icon - ServiceNow Wiki
You could do the following in anOnchange client script running on your reference field if the newValue is not empty:
var variableName = 'name of reference variable';
var id = g_form.getControl(variableName ).id;
$(id + 'LINK').hide();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-22-2015 06:50 AM
That worked for the most part. I'm able to hide the info button using that in a catalog client script, but there is also another field that is initially hidden on the form until a field evaluates as true/yes, when that field is shown and the field gets populated, it shows the info button for that field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-22-2015 06:54 AM
It may not appear on the form until it's populated, so you might have to run the script again onchange of that variable. You can see that it's not all that scalable, so I would avoid doing this unless you have to.