Expand my Community achievements bar.

Dynamic Form field locations

Avatar

Former Community Member

Hi all,

I have testing out livecycle designer 2.5 to create an interactive pdf file.

But i am stuck a point.

My form will have a few fields that would be either visible or invisible.

I was wondering how do i get the text/objects below an invisible field to occupy the visible space where the invisible field would be.

for example my form has 2 fields for address. One called Mailing address and the other called Delivery address.

Now in alot of case the mailing and delivery address would be the same, but for the times when its not I a radio check button that has a function to show or hide the delivery fields depending on the answer you choose.

How would i get the fields below the delivery address to move up when the delivery address isnt being displayed ?

Please help

1 Reply

Avatar

Level 3
Level 3

create two subform one for mailing address(put all the fields required for mailing address inside this subform) and another for Delivery address(put all the required fields of delivery address inside this subform).

On the click of mailing address radio button:

form1.firstpage.Subform1.presence="visible";
form1.firstpage.Subform2.presence="invisible";
form1.firstpage.Subform2.h="0";
form1.firstpage.Subform2.w="0";

On the click of Delivery address radio button:

form1.firstpage.Subform2.presence="visible";
form1.firstpage.Subform1.presence="invisible";
form1.firstpage.Subform1.h="0";
form1.firstpage.Subform1.w="0";

form1----Form name

firstpage----Parent page(Must be flowed type).

Subform1---Mailing address subform(Must be flowed type).

Subform1---Mailing address subform(Must be flowed type).

Thanks