- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2019 03:49 PM
When displaying data in the list view there doesn't seem to be a way to manage the left/center/right alignment of fields -- it is just based on the field type. This can result in some very odd results when there is a numeric type of field (right aligned) mixed with other fields (left aligned).
Is there a way to control this? sys_ui_style seems to only impact forms.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2019 11:23 PM
Thanks for the replies. Field Styles (sys_ui_style) is the correct answer but there a a bunch of caveats on this.
- Contrary to the documentation (https://docs.servicenow.com/bundle/london-platform-administration/page/administer/navigation-and-ui/...) if you set no "value" then it applies to the form view and in the list view to empty/null values.
- javascript:true or javascript:1==1 will allow you to apply the style to all non-null values in the list view, but not the form view.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2019 06:57 PM
Joby,
Checkout this link https://www.servicenowelite.com/blog/2013/11/24/custom-field-styles
Regards,
Bala T

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2019 10:27 PM
Hi there,
You can just add text-align:right for example to the field styles. See examples below.
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
---
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2020 07:17 AM
Hi Mark,
Can you help me with this question??
https://community.servicenow.com/community?id=community_question&sys_id=3f237690db886c90190b1ea668961988
I feel its alignment of the data only but a different scenario.
Thanks,
Vaishnavi

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2020 07:28 AM
Hi there,
It's not really related to this question. Though I did answer with a tested way in your mentioned topic.
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP
---
LinkedIn
Community article list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field