Hi Thom,
I am new to scripting in Adobe. I am trying to make a form, that has a list of items that has checkboxes next to them. What I want to happen is when a checkbox is checked, some specific text will fill a text box below the list. And as other items are checked, specific text for them are added to the text box.
Is this possible?
Thanks!
You can use something like this as custom calculation script of text field:
var cList = [
"Text for checkbox1",
"Text for checkbox2",
"Text for checkbox3",
"Text for checkbox4",
"Text for checkbox5"
];
event.value = "";
for(var i=0; i<=4; i++){
var f = this.getField("Check Box"+i).valueAsString;
if(f !== "Off")
event.value += cList[i]+"\n";}
This assumes checkboxes are named "Check Box0","Check Box1",...etc, you can add more checkboxes just change to correct number in loop.