- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-27-2020 08:03 AM
Hi community,
We have a requirement where information icon ('i' icon) should not be visible on portal for a particular reference variable.
In the above image, I should remove 'i' icon only from 'product variable (which is a part of variable set). 'i' icon for 'install base' variable should be as usual. Is this feasible. If yes, could anyone please explain the steps by which the requirement can be implemented?
Thanks in advance,
sruthi.
Solved! Go to Solution.
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-27-2020 08:26 AM
Hi,
you can go the CSS way as follows:
- Open Browser Developer Tools via F12
- Use the element selector and click on icon
- In the elements tab locate and copy the value of the HTML attribute from SPAN tag two levels above BUTTON tag
- Hold SHIFT and right click anywhere on the page
- Click on "Instance in Page Editor
- In the CSS field add the above CSS code (replace "sp_formfield_reference_hiring_manager" with your ID value)
- Save and then reload portal page

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-27-2020 08:07 AM
Hi,
you can create a onload client script and hide it this way:
var variableName = 'name of reference variable';
var id = g_form.getControl(variableName ).id;
$(id + 'LINK').hide();
You can also use a dictionary attribute
ref_decoration_disabled
Reference Doc : https://docs.servicenow.com/bundle/paris-platform-administration/page/administer/reference-pages/concept/c_DictionaryAttributes.html
Regards
Pranav

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-27-2020 11:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2022 11:46 AM
Hello.
Does the ref_decoration_disabled attribute work in variables?
I'm trying that approach but I'm having no results.
Is neccessary to add anything more to Variables attributes besides ref_decoration_disabled?
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-16-2023 07:53 AM
@Pranav Bhagat - I am trying to remove the reference icon going the client script route. What should I put in my script where you have "LINK"?