cancel
Showing results for 
Search instead for 
Did you mean: 

Field Visibility

Former Member
0 Kudos

Hello,

I am having a Radiobuttonlist in my form with options as Yes or No. When i click on 'Yes' I have to make a Dropdownlist as Invisible and when i click on 'No' I have to make that Dropdownlist as visible.

In my form i am having three pages, in the first page there is a subform within that subform i had kept these Radiobuttons and dropdownlist.

Page1

-->Subform

-->Radiobutton

-->yes

-->no

-->Dropdownlist

In the *click method of Radiobutton i have writtern the javascript.

My problem is that, this is not working in this form that too in that particular page(Page1), I have tried the same with other pages in the same form but its working fine. When I tried the same by creating a new form it is also working.

Can any one tell me what will be the problem in this.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hey Arunagiri,

If you want it to work, you could try to reference the Dropdown with an absolute path, so for instance, in Javascript...


if (this.rawValue == "Yes") {
      Page1.subform.dropdown.presence = "invisible";
} else {
      Page1.subform.dropdown.presence = "visible";
}

I have done this for a Radiobutton group before, same scenario, and I placed the code in the radio button group, under Click.

Hope this helps...

Cheers,

Kevin

Answers (0)