on 03-24-2011 8:24 AM
Hi,
I have two radiobutton, One Drop Down List and One List Box.
R1 - Drop Down List
R2- List Box
When I click R1. Drop Down List Should be Invisible.
R2 List Box Should be Invisible.
How to write Java code for this.
Thanks
Hi Chanshini,
In this case you should use the RadioButtonList. In the object palette --> Binding, set the radioButton values as 1 and 2.
Use following script in the click event of RadioButtonList.
if(this.rawValue == 1){
DropDownList1.presence = "visible";
ListBox1.presence = "hidden";
}else if(this.rawValue == 2){
ListBox1.presence = "visible";
DropDownList1.presence = "hidden";
}
Hope this will solve the issue.
Thanks & Regards,
Sanoosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sanoosh's code should do it. Also, make sure you have your settings correct for the initial display of those fields so that they display correctly even before the user clicks either radio button. Lastly, make sure you want to use "hidden" vs "invisible"....hidden just "hides" the element from the form completely whereas "invisible" hides the element but still reserves it "space" in the form. That part really just comes down to how your page design looks.
Hi Chanshini,
What do you mean by form builder? Adobe LiveCycle Designer opens in SFP TCode right? And the form layout design is done through Lifecycle Designer.
You can use the script in Lifecycle Designer to get this functionality done.
Please let me know if you have any specific issues.
Thanks & Regards,
Sanoosh
Ok I got it. Please check the following points.
1) In the ABAP driver program used to generate the form, check whether you have set the docParameters, "Fillable = X" & "Dynamic = X"
2) To check the functionality in preview, In the Adobe Lifecycle Designer, Edit --> Form Properties --> Defaults --> Preview, set XDP preview format as 'Acrobat(Dynamic) XML Form'.
Thanks & Regards,
Sanoosh
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.