Expand my Community achievements bar.

Checkbox raw value displayed in Text box when checked

Avatar

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

Avatar

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.

Avatar

Level 1

Hey tehnologiai5660965

Thanks for your response. Much appreciated

DBC

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