Text align from right to left for a service catalog variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2018 01:10 AM
I have a query related to service catalog variable.
I have created a single line text variable called Name_AR .Generally the text align for any variable is from left to right.But i want this variable text-align should be right to left .For this i added one line script (i.e., g_form.getControl('Name_AR').style.textAlign='right';).This is working fine for me on standard view(please find the attachment).But somehow it is not working on service portal(please find the attachment).
Any kind of help will be highly appreciated .
Thank you in advance.
- Labels:
-
Service Catalog

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2018 05:36 AM
Instead of g_form.getControl(), use g_form.hasField() to determine if a field is present