How to change field alignment of Integer type from right to left side on workspace

Raviteja Kunal1
Tera Expert

Hi

I want to change alignment of integer type field from right side to left side on workspace. I tried field styles and onload client script but did not work. How can I achieve this?

 

function onLoad() {
//Type appropriate comment here, and begin script below
var myField = 'estimated_usd'; // add correct name here
var ctrl = $('sys_display.' + g_form.getControl(myField).id);
var displayControl = g_form.getControl('estimated_spend_usd');
displayControl.style.background = 'red';
ctrl.style.textAlign = 'left';
} 

5 REPLIES 5

Nisha Thakur
Tera Contributor

any workaround available?