Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

How Do I Make Checkbox, Once turned ON/OFF, Auto Populate Text Field?

Avatar

Level 2

Hello All,

I need a little help with this pdf form. I am trying to make the checkbox, once checked "on", say a message like "I agree to this form", in the text field to the right. Any help would be great! Thanks in advance!

My form is attached.....

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

Script like this will get what you want:

if (this.rawValue == 1)

{

     MessageBox.rawValue = "I agree to this form";

}

else

{

     MessageBox.rawValue = "";

}

Sample attached.
Good luck,
Niall

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi,

Script like this will get what you want:

if (this.rawValue == 1)

{

     MessageBox.rawValue = "I agree to this form";

}

else

{

     MessageBox.rawValue = "";

}

Sample attached.
Good luck,
Niall