Copy link to clipboard
Copied
I have 5 checkboxes "Check Box1-5" that needs to fill in multi-line text field with their export value when any is checked. Any help is appreciated.
Copy link to clipboard
Copied
Use this as custom calculation script of text field:
var array = [];
for (var i=1; i<=5; i++) {
var checkbox = this.getField("Check Box"+i).valueAsString;
if(checkbox !== "Off")
array.push(checkbox);}
event.value = array.join("\n");
Copy link to clipboard
Copied
Use this as custom calculation script of text field:
var array = [];
for (var i=1; i<=5; i++) {
var checkbox = this.getField("Check Box"+i).valueAsString;
if(checkbox !== "Off")
array.push(checkbox);}
event.value = array.join("\n");
Find more inspiration, events, and resources on the new Adobe Community
Explore Now