Is there a way to change text direction
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
â01-10-2023 10:36 PM
Hello. is there a way to change text direction from left to right
to right to left?
i am using a right to left language...
6 REPLIES 6
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
â09-16-2024 11:37 PM
Hi @DevKR ,
please check below script if it helps, its working fine for me.
function onLoad() {
var myField = 'u_od'; //field value
var ctrl = g_form.getDisplayBox(myField);
if (!ctrl) {
ctrl = g_form.getControl(myField);
}
console.log('Control:', ctrl);
if (ctrl) {
ctrl.style.textAlign = 'left';
} else {
console.error('Control not found for field:', myField);
}
}
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
â09-17-2024 06:20 AM
Please do not do this by code, because it is an unnecessary customisation. Please just set the "text direction" on the Language record, details can be found here,
Many thanks,
kind regards
--------------------------------------------------------------------
Director of Globalization Deployment, Internationalization
Director of Globalization Deployment, Internationalization