Filed Style apply to form view

MiY
Tera Contributor

I would like a paperclip icon to be displayed in the request_item field of the sc_task table when a file is attached to the record set in the Request item.
To meet this requirement, I set the Filed Style as shown below.

MiY_0-1756893166288.png

 


However, while the icon appears in the list view, it does not appear on the form.

MiY_1-1756893192882.png

MiY_2-1756893242176.png

 


How can I apply this style to the form view?

Thank you in advance.

1 ACCEPTED SOLUTION

@MiY 

yes sometimes it shows and the behavior is inconsistent and is intermittent.

ServiceNow doesn't intend to fix this.

this KB talks about the same and you can create your own client script to show it always based on your logic.

Value-based field styles applied to forms inconsistently on UI14 and UI15 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

View solution in original post

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@MiY 

field style with value in it only apply for list and not on form.

AnkurBawiskar_0-1756894566527.png

 

for your case, you will require onLoad client script and then show that icon

For example: you can refer the OOTB client script on incident table which adds VIP icon

AnkurBawiskar_1-1756894609097.png

Field styles are not displayed in list view when the Value field is left empty 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

@Ankur Bawiskar 

Thank you, so it's normal for it to only be applied to list views.
However, there are cases where it is applied to fields as well, as shown below.
Why is that? I haven't created a client script.

 

MiY_0-1756895053742.png

 

@MiY 

yes sometimes it shows and the behavior is inconsistent and is intermittent.

ServiceNow doesn't intend to fix this.

this KB talks about the same and you can create your own client script to show it always based on your logic.

Value-based field styles applied to forms inconsistently on UI14 and UI15 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Oh my god! That's a thing... Thank you for sharing.