on 05-21-2009 5:59 AM
Hi All ,
I am creating Adobe Interactive form(static page). In this page have 3 buttons.For each button one subform is there. I want to show/hide subforms under buttons.
I am using javascript. Please give me the code for this.
Thanks
Risha
Hi Risha,
can you explain your question like do u have some condtions to show or hide the subform? OR if u click
button you want to show the subform and by default subform should be hidden something like this?
Normally for showing the subfrom on click of the button: (By default make your subform invisible from its properties).
Select the button and in the click event select java script option and write the following code:
Subform.presence = "visible";
(*you have to give full path of the subform instead of only subform name).
With Regards,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ravi ,
1) I am using Webdynpro only and creating static form.
2) In webdynpro palette there is no Button element.
3) For webdynpro view for your interactive UI element I selelcted the display type as Native only.
I am not aware of this *form layout should be type zcl *. Please help me where we can select this and what do you mean it.
Thanks
Risha
Hi Risha,
2) In webdynpro palette there is no Button element.
under webdynpro Native palette, there will be a button with name "Submit" .
Go to t code SFP and open your form. Under properties tab select layout Type as ZCL.
ZCL means zero client. Also in the layout tab(from SFP).. go to Utilities and click insert webdynpro script.
And activate your form.
With Regards,
Ravi.D
Hi Risha,
The code u've written would work fine, All u need to do is just place the below given code in the doModifyView method of the View that contains the Interactive Form.
IWDInteractiveForm Form = (IWDInteractiveForm)view.getElement("NAME OF THE INTERACTIVE FORM UI ELEMENT");
Form.setDynamicPDF(true);
Hope this helps..
Thanks,
Amita
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
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.