on 06-24-2008 9:18 AM
Hi,
Do you know how to hide a subform in an interactive form when user select a specific value in a drop down list?
In my forms,I have a drop down list whith 2 values an 2 subforms with different fields . Depending on user selection,
I have to hide the unselected subform.
Do you know how to do this?
Many thanks
Karim
Hi Karim,
You can place a script code on exit event of the dropdown which will get executed once user selects something in the DD.
Below code can be used for hiding the subform:
FormName.PageName.SubformName.presence = "hidden";
Hope this helps!!
Regards,
Arafat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi sithi
First of all,thanks for your help. But my problem is still the same.
1) When the interactive form is loaded at firts time, the 2
subforms are correctly initializate. One is visible and the
other is hidden.
2) In the EXIT event of my DDL, I call the execInitialize()
method of my 2 subforms. The initialize event are called but
there is no changes to the layout.
3) Is it possible to change the layout after the redering of a form?
Thanks for your answer
Karim
Hi Karim,
In the view where you have placed the Interactive Form UI element, set the PDF as dynamic by writing the below code in wdDoModifyView():
IWDInteractiveForm form = (IWDInteractiveForm)view.getElement("InteractiveForm");
form.setDynamicPDF(true);
Hope this will resolve the issue.
Regards,
Arafat
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.