cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic positioning of elements in adobe form - issue

former_member181962
Active Contributor
0 Kudos

Hi Experts,

I am trying to do the following scenario in adobe forms.

I have a simple subform which is set to Flowed.

It has two elements.

One variable which is passed from the print program and a standard text (include text).

If the variable is not populated, then the first element should be the standard text.

else both elements should be populated.

I have included the following code in the ready:layout event using java script:

if

(this.rawValue == null)

{

this.presence = "hidden";

}

Although it is wrking, the second element (the include text is not moving up, where there is no value for the variable.

can you please let me know what I am doing wrong?

Best Regards,

Ravikanth Talagana

Accepted Solutions (0)

Answers (1)

Answers (1)

pavan_prabhu
Active Participant
0 Kudos

Hello Ravi,

     Don't write the code in Ready Layout. Write the code in Initialize event.

Why it will not work in Ready Layout?

-----> Because the framework has already positioned the elements in the buffer. After the layout is ready, the elements cannot be positioned dynamically.

Ready Layout should be used only for things such as fetching a value on particular page because you might not know where the page ends in the design view and sort of other things and not for positioning the elements. Write the Java script code in Initialize event and it will work.