How to hide information icon for reference field on form?

sweetymiriyala
Giga Contributor

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.

 

find_real_file.png

 

find_real_file.png

 

Please Help me on this,

Thanks in advance

 

 

9 REPLIES 9

Ankur Bawiskar
Tera Patron
Tera Patron

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

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

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

dhananjay
Giga Contributor

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.

Hi Dhananjay ,

 

I tried using above code which you suggested but it is still displaying info - icon while inserting new records.

 

find_real_file.png