cancel
Showing results for 
Search instead for 
Did you mean: 

Passing Data through check box

Former Member
0 Kudos

Hi,

There is two input field and one checkbox in my application.I have data in one input field . If I check on the checkbox, then the same data will come in the other input field.

Please provide me the code for the same.

Regards

Manish

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

This can be done as follows:

InputField1.value = value1 (context attribute)

InputField2.value = value2 (context attribute)

Assign an action to the CheckBox "onToggle" event and copy value1 to value2 in the action handler.

Armin

Answers (1)

Answers (1)

Former Member
0 Kudos

U can assign same context value attribute to both the InputFields in this case u dont require any action or check box or on CheckBox action assign the context value attribute of the first to the context value attribute of the second inputfield.