hi,
im trying to put an expandable subform on to my form but i need to to expand upwards. I can achieve what i need to do with the top-bottom option selected but need it to go from bottom to top.
basically i have several text boxes inside the flowed subform, which are set to hidden but turn visable on certain events. I need it to ancher at the bottom of the subform and expand up.
Thanks
Views
Replies
Total Likes
You can do it but you need to get fancy with some scripting. You will need to move the subform on the y axis and adjust its height using the .y and .h properties based on what you are hiding and showing.
Best read up on those properties in the scripting reference because they tripped me up a bit. Probably because I work in points and I think those properties default to inches.
I've uploaded a sample to acrobat.com of a test form I did a while ago. It has a subform at the bottom of the page (with buttons to move it to the top of the page if needed) that grows when adding rows to a table that is inside it. I think there is some extraneous code in there as I was trying to do something fancy with multiple pages at the time, but I can't remember for sure. You should be able to get the gist of things.
Basically what's happening is when a row is added or removed from the table the height and y coordinate are adjusted by the corresponding amount.
https://workspaces.acrobat.com/?d=L4ayPD*O1El-ANHEZE6AtA
Message was edited by: Jono Moore - Uploaded a different file with the extraneous code removed so the link has changed since first posting.