Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

How to align field labels to the left

Tepp
Tera Expert

Hi experts,

I want to left-align the labels for each field on the form screen. Can you tell me how to do that?

Thanks a lot!
スクリーンショット 2025-10-22 130229.png

5 REPLIES 5

mayankkumar
Kilo Patron

Hi @Tepp,
-----------------------------------------------------------------------------------------------------------------------------------
One of the ways to achieve this is to write a onLoad client script on the table -:

g_form.getLabel('number').style.textAlign = 'left';

 you can add the multiple fields you want

Result ->

mayankkumar_0-1761108536008.png
Let me know if you need further help

----------------------------------------------------------------------------------------------------------------------
Please mark my response helpful and accept as solution
Thanks & Regards
Mayank
Rising Star 2025

Hi @Tepp,
I hope you are doing well, if my response helps you
Please mark my response Helpful and Accept as Solution and close the thread
Thanks & Regards
Mayank

Nikhil Bajaj9
Tera Sage

Hi @Tepp ,

 

This can be achieved using a on-load client script:-

 

NikhilBajaj9_0-1761109404740.png

 

Please appreciate my efforts, help and support extended to you by clicking on – “Accept as Solution”; button under my answer. It will motivate me to help others as well.
Regards,
Nikhil Bajaj

ServiceNow Rising Star-2025

Ankur Bawiskar
Tera Patron

@Tepp 

that's OOTB behavior.

I won't recommend any script for this.

Please inform customer about the platform feature.

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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