Skip to main content
Participating Frequently
January 20, 2023
Question

How to auto populate single textfield with different values of multiple checkboxes selected in PDF F

  • January 20, 2023
  • 1 reply
  • 746 views

How to auto-populate a single text field with different values of multiple checkboxes selected in PDF Fillable form?

 

I have a form for the students to check out of 10 checkboxes and each checkbox has a message to show if checked. 

I want these messages to be auto-populated in a single read-only text field. 

I read some posts and followed some previous questions but couldn't get it.

Kindly help me as soon as possible.

Thanks!

This topic has been closed for replies.

1 reply

Participating Frequently
January 20, 2023

The script I used but didn't work

var C1 = this.getField("C1").value;
var C2 = this.getField("C2").value;

if (C1 != "Off"){

this.getField("Text3").value = "Best";

}

if (C2 != "Off"){

this.getField("Text3").value+ = "Good";
}

Nesa Nurani
Community Expert
Community Expert
January 21, 2023

In the last line + = should not be separated +=.

Participating Frequently
January 21, 2023

Thanks for the response.

How can I add new line?
Currently it is printing like this  GoodBest

But it should be 

Good
Best

Thanks!