How to hide information icon for reference field on form?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2018 11:26 PM
I followed the same procedure as mentioned in the below link:
https://www.google.com/url?q=https://community.servicenow.com/community?id%3Dcommunity_question%26sys_id%3Dd3e10fa9db98dbc01dcaf3231f961996&sa=D&source=hangouts&ust=1528784406904000&usg=AFQjCNGI1xDq0RFFD9ojCpgHyxPOVbITVg
This is working only for old records. when I am creating new record and selecting value in reference field ,the icon-info is still appearing.
Please Help me on this,
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2018 11:53 PM
Hi Sweety,
So what is your exact requirement?
Since you are using that system property I think it would be a global change. Why not have onLoad/onChange client script and hide the ref icon for that field.
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2018 05:00 AM
Hi ankur,
There is reference field called Project name on the form , the requirement is when an end user is filling the form ,after selecting some value in the project field he should not be able to see information icon. I have used client script and have set the system property with suffix glide.script.block.client.globals value to false. But the thing is info icon disappeared only for old new records but when Iam creating the new records it is still displaying info icon.
I used this code in client script onLoad function:
function onLoad() {
$('view.x_172325_daily_exp_daily_expences.project_name').hide();
}
Please help me on this.
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2018 12:22 AM
Hi sweety,
Try below Code add it to your onload client script:-
var varName = 'caller_id'; // field name in your case it will be the field name of Project Name field.
var elID = g_form.getControl(varName).id + 'LINK';
$(elID).remove();
Mark Correct if it solved your issue or hit Like and Helpful if you find my response worthy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2018 01:33 AM