Expand my Community achievements bar.

Tick a checkbox

Avatar

Level 3

Hello everybody

I did a form. I have a checkbox and two textfields with the same data binding. When I tick the checkbox the second textfield becomes visible. So far so good.  But, but I would like that WHEN I type in the textfield, the square of the checkbox is automatically ticked. Probably a javascript exists.

Many thanks for your help 

2 Replies

Avatar

Level 10

By tick, you mean checked?

If you go in the event exit of the textfield and you verify if the textfield value is not null you can check the checkbox with the following line:

chkBox.rawValue = 1;

Avatar

Level 3

Great ! Many thanks for this help.