on 11-20-2013 5:25 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.