Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Concatenate checkboxes

Explorer ,
May 29, 2025 May 29, 2025

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.

TOPICS
JavaScript
118
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Expert ,
May 29, 2025 May 29, 2025
LATEST

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");

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 29, 2025 May 29, 2025
LATEST

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");
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines