Change variables text alignment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2024 02:29 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2024 02:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2024 02:57 AM
Hi @RonAlmog
Could you try following code in your style
g_form.getControl('your_variable_name').style.textAlign = "right";
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2024 04:43 AM
This throws an error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2024 05:04 AM
what error, could you share the snap here