Form Designer - How to hide the "Preview record" button on Reference type field?

kzmijak
Kilo Contributor

There is a find_real_file.pngbutton next to Reference type Field in our ServicePortal form. It displays a full view of the object of reference. The end user should have no access to that functionality. 

How to remove that using Form Designer or any other method?

find_real_file.png

1 ACCEPTED SOLUTION

Allen Andreas
Administrator
Administrator

Hi,

You can remove that reference icon by adding this attribute to the field:

ref_decoration_disabled=true

However, this does it for more than just service portal.

Otherwise, see this thread for a service portal specific option: https://community.servicenow.com/community?id=community_question&sys_id=e02fc3e1dbdcdbc01dcaf3231f96...

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

View solution in original post

2 REPLIES 2

Allen Andreas
Administrator
Administrator

Hi,

You can remove that reference icon by adding this attribute to the field:

ref_decoration_disabled=true

However, this does it for more than just service portal.

Otherwise, see this thread for a service portal specific option: https://community.servicenow.com/community?id=community_question&sys_id=e02fc3e1dbdcdbc01dcaf3231f96...

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Thank you, I used this snippet to fix my issue:

 

.field-has-reference > .add-on {
	display:none;
}