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";
}
radzmar
• LoveCycle Blog
Documents you need:
• LiveCycle Designer ES2 Docs