Avatar

Correct answer by
Level 10

Hi,

Have a look at this example which shows how to use the presence property to show and hide objects: http://assure.ly/h7whb8.

There are also some examples here:

https://acrobat.com/#d=ALebgueDXjewHjGyYRdrmw

https://acrobat.com/#d=FXLq025O2C0aDMh9YqpH1g

Basically you would place the following script in the click event of the radio button exclusion group:

if (this.rawValue == "Correct") {

     direction.presence = "visible";

}

else {

     direction.presence = "invisible";

}

This is on the basis of the Left and Right radio buttons being inside a radio button exclusion group called "direction". Also if you have specified a value in the Object > Binding palette for the radio buttons, the script would need to test this value. 

You can adjust the textfield margins in the Layout palette, so that the underline is raised up. Trial and error.

Niall

View solution in original post