I have a requirement to add style with left alignment for 'Created' and 'Updated' fields
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā05-13-2025 10:29 PM
I have a requirement to add style with left alignment for 'Created' and 'Updated' fields
- Labels:
-
Architect
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā05-13-2025 10:40 PM
I just now replied to similar thread.
Is it possible to create styles for the oob fields?
sharing it again here
I tried creating field style on Created field in HR Core Scope with background red and it doesn't work.
I believe you can add field style but it doesn't reflect on OOTB system fields
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā05-13-2025 11:12 PM
Not Allowed via Style Records:
You cannot add UI Style records to Out-of-the-Box (OOB) fields like sys_created_on or sys_updated_on.
These are system fields and are protected.
Why the Error Happens:
Style records can't target system fields across scopes due to scope protection and system ownership.
Even if youāre in the same app, these fields belong to global.
Workaround:
Use a Client Script (onLoad) to apply CSS-based left alignment:
g_form.getControl('sys_created_on').style.textAlign = "left"; g_form.getControl('sys_updated_on').style.textAlign = "left";
No Impact on List Views or Workspace:
This workaround only works on form view, not in list or workspace.
Conclusion:
No, you canāt style OOB system fields using UI Styles.
Yes, you can visually adjust alignment using client-side scripting.