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

Make image appear

nphil070
Registered: Jan 15 2008
Posts: 6
Answered

Hello,

I am creating a survey with several radio button questions. Each question has a 1-5 value. The sum of all the questions values appear in numeric field named "total".

Depending on how you answered the questions you would see your total and determine what "range" you would fit in.

What I am trying to do is instead of describing all the ranges, I would like an image to appear depending on which of the three ranges you fall with,

Is this possible?

My Product Information:
LiveCycle Designer, Windows
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
You can easily make images visible/invisible with a script in the change event of the radio button group.
For example:
If you have a radio button group with 3 buttons and 3 invisible images in your form, the following script will make one of the images visible if check one of the radio buttons.

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