Hide reference preview button

Max Lin
Tera Contributor

Hello all!

I tried to follow this https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0714594
find_real_file.png

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

However this broke the layout (the name has become to 20% of the whole field?)..

find_real_file.png

I tried to adjust the variable width, not working.
find_real_file.png

 

This is different from the KB. the KB shows a screenshot of full nice layout (see the X of the field):
find_real_file.png

 

Anyone able to help on this please?

1 ACCEPTED SOLUTION

Aman Kumar S
Kilo Patron

Found one relevant article for your issue:

 

https://community.servicenow.com/community?id=community_question&sys_id=e02fc3e1dbdcdbc01dcaf3231f96191f

 

Feel free to drop thumbs up, if this helps 🙂

Best Regards
Aman Kumar

View solution in original post

3 REPLIES 3

Aman Kumar S
Kilo Patron

Found one relevant article for your issue:

 

https://community.servicenow.com/community?id=community_question&sys_id=e02fc3e1dbdcdbc01dcaf3231f96191f

 

Feel free to drop thumbs up, if this helps 🙂

Best Regards
Aman Kumar

.add-on > button.lookup {
  display:none !important;
}

In the page https://community.servicenow.com/community?id=community_question&sys_id=e02fc3e1dbdcdbc01dcaf3231f96191f

 

it has many answers, i used this code in Rome and works.

 

Thanks Amman!

Great, just for understanding and future visitors:

What is !important?

The !important rule in CSS is used to add more importance to a property/value than normal.

In fact, if you use the !important rule, it will override ALL previous styling rules for that specific property on that element!

Best Regards
Aman Kumar