I want to manage the video length input field to be disabled if the user choose only photography,
and enabled if the user choose:
1- videography
or
2- both(videography and photography).
However, I have attached the code i have used and it is not working, please share your thought about what could be the problem.
Thanks,
export function ServiceType_change(event) {
if ($w("#checkbox1").checked){
$w('#VideoLength').disable();}
else{$w('#VideoLength').enable();}
}
Unfortunately, the code is not working. I tried to use it with/without (onChange, onClick) functions and with/ without enabling the input text field (video length) and it's still not working :(.
https://russian-dima.wixsite.com/meinewebsite/enable-button-check