Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Checkbox raw value displayed in Text box when checked

dabigcactus
Level 1
Level 1

Hello All:

I would call myself a beginner when it comes to LiveCycle, so this question most would probably be considered pretty easy. I'm wondering how I can display a checkbox's raw value into a textbox whenever it is checked.  My form (form1) consist of several checkboxes with unique names on a different page ("page2"), while my textbox appears on "page1".  My goal is to populate my textbox with the unique names of each check box followed by a comma after the box is checked.

How would I about coding this?  Should I put this code on each checkbox or the textbox? Which tab would I put it on (i.e Calculate, Click, etc.)?

Any help would be greatly appreciated

Thanks,

DBC

2 Replies
TehnologiaInformatiei
Level 2
Level 2

Hello DBC,

The rawValue of a checkbox refers to it's state and thus is a number, so it's rawValue is 1 if the checkbox is checked, 0 if it is unchecked and 2 if it is neutral.

Take a look at this example i made for you, based on what I understood you need.

Specially look in the change event of the checkboxes as that is where the code is.

http://bit.ly/2bcUsRD

Good luck and I hope it helps.

dabigcactus
Level 1
Level 1

Hey tehnologiai5660965

Thanks for your response. Much appreciated

DBC

On Aug 12, 2016 7:56 AM, "tehnologiai5660965" <forums_noreply@adobe.com>