These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Making Images Appear with Radio Buttons or Drop Down Menus - Grrrrrrrr

yalloal1
Registered: Oct 27 2009
Posts: 7

Hi,

I am trying to create a form that based on the selection of a radio button or drop down menu (I prefer the latter but at this point I don't care), an image will appear.

I have seen various scripts in here but they don't seem to be working for me. Granted I am a complete novice, but I don't think I am stupid, although, currently I feel very much so.

Below is the current script I am using that I got off this site, but I can't make it work. I make my 3 radio buttons, I then add my 3 images. I change the name of the images to Image1, Image 2 (in the Hierarchy section) etc so it is consistent with the script and then I make them invisible. Then I go to the script editor for the radio button group, and under the 'Show' section, I select change and paste the script using JavaScript language. I am using Adobe LiveCycle Designer 7.

Is there something obvious that I am not doing. Do I have to name the buttons? What is wrong with me?

form1.#subform[0].RadioButtonList::change - (JavaScript, client)
if (RadioButtonList.rawValue == 0)
{
Image1.presence = "visible";
Image2.presence = "invisible";
Image3.presence = "invisible";
}
if (RadioButtonList.rawValue == 1)
{
Image1.presence = "invisible";
Image2.presence = "visible";
Image3.presence = "invisible";
}
if (RadioButtonList.rawValue == 2)
{
Image1.presence = "invisible";
Image2.presence = "invisible";
Image3.presence = "visible";
}

My Product Information:
LiveCycle Designer, Windows
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Did you set the form to "dynamic" in the form properties?

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

yalloal1
Registered: Oct 27 2009
Posts: 7
Thanks for replying.

Hmmm. you see I never got that option. I went into Form Properties from the file menu and again there is no option. Is there the potential that my version does not support this?