Write right to left in a text box

angelmorales 01 Aug, 2014
Hello can you help me?, how to align the text in the textbox from the right side,I want to start wiriting from the right side of the textbox but only in a particular textbox

Thanks
GreyHead 02 Aug, 2014
Hi angelmorales,

You need to add the dir='rtl' attribute to the input. In CFv4 the simplest way is to add the input HTML to a Custom Element element. (In CFv5 you can add dir=rtl to the Extra params box in an element.)

Bob
angelmorales 04 Aug, 2014
It works if i modify the Html code but the code overwrite if i make any change in the form from the wizard, its possible to add this attribute only for two textboxes from the Event window adding a Custom Code in the On Load section?
Thanks
GreyHead 04 Aug, 2014
Answer
Hi angelmorales,

Please use the Custom Element element from the Advanced group in the Preview tab.

Bob
angelmorales 06 Aug, 2014
Do you mean that i have to erase the textbox in the Preview tab, then i have to create a Custom Element adding the code to generate the same textbox with the dir='rtl' attribute, example:
id="licencia_ingresada11_container_div" style=""><label>Licencia Ingresada</label><input  dir='rtl' maxlength="10" size="10" class=" validate['required']" title="" type="text" value="" name="Licencia_Ingresada1" />


Thanks for your answer
GreyHead 06 Aug, 2014
Hi angelmorales,

Yes

Bob
This topic is locked and no more replies can be posted.