When my form is clicked on a box/radio button, a predefined text appears elsewhere in the form.  How can I do this?

I have created a form for a hospital.  I have a form with Yes/No boxes.  I want the results of these checkboxes to trigger the display of text in the text boxes on the same document.  For example, if it is said: "pain in the neck?  O N"and they click on 'Y', I want a message to be entered in a 'Instructions' box on the form.  I made shape, I just need direction on the fi/then for all clicks.  that is, «if they click YES on this, type THIS in this other area...» "etc.

Use as the mouse to the top of the script for the checkbox control:

if (event.target.value!="No") {  //If checkbox is ticked
this.getField("Textbox1").value = "Instructions for Neck Pain Go Here";  //Replace Textbox1 with the name of your field
}
else this.getField("Textbox1").value = "";   //Clear the text field if checkbox is not ticked

Tags: Acrobat

Similar Questions

Maybe you are looking for