Enable/disable Input widget nased on Check Box Value

Enable/disable Input widget nased on Check Box Value

  

Hello everyone out there!

I have a check box and an Input widget (text box). What I want to do is enable/disable the Input widget based on the value of the check box, whenever the vlaue of the checkbox changes.


Please advise on how to achieve this


Thanks a lot,


Marios
Hi Marios,
 
Check the attachment file, I' ve created two samples to achieve what you want.
 
Sample_1 - Using onchange method to an action, in the action refresh the input, on the property enabled of the input set the checkbox variable.
 
Sample_2 - Using javascript, on the extend properties of the checkbox, call the javascript function. The javascritp junction will check if the checkbox is checked if it's the input will be disable, otherwise, will be enable.
 
Regards,
Nelson Baptista