Change variables text alignment

RonAlmog
Tera Contributor

Hello, I'm having a hard time trying to set text align for single/multi line text variables located in a catalog item.

I just want the content inside the text field to be aligned from right to left, not the entire field.

 

Would appreciate any help 🙂

Ron

 

6 REPLIES 6

PrashantLearnIT
Giga Sage

Hi @RonAlmog 

 

Thats not possible as far as I know.

 

********************************************************************************************************
Please appreciate the efforts of community contributors by marking the appropriate response as the correct answer and helpful. This may help other community users to follow the correct solution in the future.

********************************************************************************************************
Cheers,
Prashant Kumar
ServiceNow Technical Architect


Community Profile LinkedIn YouTube Medium TopMate
********************************************************************************************************

Rajesh Chopade1
Mega Sage

Hi @RonAlmog 

Could you try following code in your style

g_form.getControl('your_variable_name').style.textAlign = "right";

 

Thank you

This throws an error

what error, could you share the snap here