Expand my Community achievements bar.

How to change border with?

Avatar

Former Community Member
Hi,



I'm desperately trying to enlarge the border of a textField using JavaScript.

I tried:


xfa.resolveNode("#subform[0].#field[0]").borderWidth = "0.2in";

as well as


xfa.resolveNode("#subform[0].#field[0]").ui.textEdit.borderWidth = "0.2in";



Nothing happened.

Does anyone have an idea, what's wrong?



Regards,

Steve
5 Replies

Avatar

Former Community Member
Try this:



xfa.resolveNode("form1.#subform[0].TextField1").border.edge.thickness = "1in";



--

SteveX

Adobe Systems

Avatar

Former Community Member
Or to set the border just for the text input area, try this:



xfa.resolveNode("form1.#subform[0].TextField1").ui.textEdit.border.edge.thickness = "1in";



Note that a 1 inch border may hurt your eyes. :)

--

SteveX

Adobe Systems

Avatar

Former Community Member
Also, if the field doesn't have a border showing when you run the line of script nothing will happen. The border needs to be visible for changing the width to make any difference.



Note that even a 0.2 inch border may hurt your eyes :)



Chris

Adobe Enterprise Developer Support

Avatar

Former Community Member
Great!

Thank you!



Btw: I'm always wearing sunglasses while sitting in front of my computer. ;-)



Steve

Avatar

Former Community Member
Hi,

Thanks for your useful responses. I tried this code on choicelist, but only the top border is affected...

Is it something to set to let all border change their thickness?



Thanks



Denis

iware sa