When I get the X coord for an object in script. Text1.x it returns 2in but i need to take that value (without the units "in") and add a value to it.
Also, I am having some difficuly getting the width value of a textbox that expands to fit.
I want to position a help button after a textbox. I want to know the position of the textbox and the width. So i can set the X value of the help button.
Here is some code that will give you the length of the field after rendering. You can change the units to any supported value at it will work fine. Note that this is javascript.
var oH = xfa.layout.w(txtDescription, "in");
this.w = oH + "in";
where txtDescription is the name of the field that you want to get the length of. This code wouldl be executed in the layout event of the object that you are trying to position.