how do we update sp-bootstrap.scss (CSS) file to remove reference field workaround?

Randall Arnold
Giga Expert

After we moved to a service portal, we noticed that the data picker for reference fields was getting truncated.  After a bit of search, I found the cause here: https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0832673.  Apparently someone implemented a CSS formatting workaround for the issue described, and now it needs to be removed.

Debugging a catalog page led me to find the offending code in a file called sp-bootstrap.scss:

.field-has-reference .reference {
	display: table-cell;
	width: 100%;
	max-width: 0;
}

The KB says I need to remove the max-width setting.  Problem is, I can display the sp-bootstrap.scss file via url (https://<instance>.service-now.com/styles/scss/sp-bootstrap.scss), but for the life of me I can't find where in ServiceNow we're supposed to edit it...

EDIT: sp-bootstrap.scss doesn't look like the actual problem.  See follow-up posts.

1 ACCEPTED SOLUTION

Justin77
Mega Guru

Like a lot of the core SNOW platform, that file isn't available for editing.  Your best bet is to override that property via the CSS on either the portal record, the theme record, or the widget record.

View solution in original post

10 REPLIES 10

I know it's really late... but I can tell you why that was there... or at least why we put in the same... we didn't want users, from portal, being able to navigate to the "forms".  This removes the (i) from reference fields so there is not popup... that lead to a list of access points etc... from the related lists that would show and a large about of confusion on users parts.