Align the decimal field value in left side in the form, how can achieve this .

Rajveer
Tera Expert

Hello Experts,

 

Align the decimal field value in the left side in the form, how can achieve this .i  have found the one link but it's working on list view does not work on form view.

 

https://www.servicenow.com/community/developer-forum/default-text-alignment-for-server-side-numbers-...

 

Could you help me how can do the align the decimal field value in left side in the form.

Following screenshot for reference. Here decimal field value is task id.

 

 

 

1 ACCEPTED SOLUTION

SwarnadeepNandy
Mega Sage

Hi Rajveer,

 

Use style

text-align:left;

for the field "task_id"

 

It worked for me for a Decimal type of field on form.

 

I added style to "Cost adjustment amount" field in ast_contract and it worked for me on the form.

 

SwarnadeepNan1_0-1691921781613.png

 

Kind Regards,

Swarnadeep Nandy

View solution in original post

2 REPLIES 2

SwarnadeepNandy
Mega Sage

Hi Rajveer,

 

Use style

text-align:left;

for the field "task_id"

 

It worked for me for a Decimal type of field on form.

 

I added style to "Cost adjustment amount" field in ast_contract and it worked for me on the form.

 

SwarnadeepNan1_0-1691921781613.png

 

Kind Regards,

Swarnadeep Nandy

b__ShahriyarA
Tera Contributor

It is working fine in Native UI, but it is not working in workspace , can you please share the solution for workspace