LiveCycle Designer 8:
I need a script that when the end user selects a checkmark (Checkbox3), two other objects become visible. The two fields are Date (a date picker), and the second field is for time, entered manually. I used a script for a single field but did not work for either of these two fields. The goal is when a future appointment checkbox is clicked, the date and time fields to appear, otherwise remain invisible. Again, the Date field is a date picker, and the second is a simple textfield with the "Time" as its caption. Thank you
Open the Actions tab on the Check Box properties and add a Run a JavaScript action. In the JavaScript Editor, add the following code:
var f = this.getField("fldName");
f.hidden = true;
fldName in the above code would be the parent name of your other fields —something like fldName.1, fldName.2, etc.
ted
The author of numerous books on Acrobat, Photoshop, Illustrator and the Adobe Creative Suite, and an international speaker on Adobe Acrobat, Ted Padova is a well-known PDF guru.