on 04-19-2016 8:02 AM
Hi,
I want to calculate the coordinate (y-axis and the height) of a flowed subform using JavaScript in Adobeform.
Is there any possibilities to get the coordinate of a flowed ?
Thank you for your help.
Hi Minoushka,
Currently I assume that the name of the flowed sub form is DATA.
In Ready Layout event, write the below JavaScript code.
var height = xfa.layout.h( DATA, "mm" );
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try this in layout ready event
var height = xfa.layout.h(Subform,"in",0);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
if you are able to work in preview mode (by having demo data setup for preview), you could simply go for a text box with:
xfa.host.messageBox("Test " + varName);
by that a small pop up appears that shows you the value.
xfa.layout.h or xfa.layout.y help you, but please consider that it might give you the y coordinate within the sourrounding subform.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.