It is not properly a bug.
When you add a calendar control to a form, CF adds a hidden input field to manage the real value of the date.
If you want to enable/disable the control using some other control event or js, you should be very careful choosing the identifier.
If you use the calendar id (e.g.: on selecting X disable #cal1) the hidden input is not disabled, if you use the calendar name (e.g. on unselecting Y disable cal1) the hidden input is disabled.
If you're not consistent you'll encounter problems. A disabled hidden input value is not submitted, for example.
Wouldn't it be better if this was managed at CF level?
Other controls use a ghost value and g2.forms.js has some code that probably manages in the proper way enabling and disabling of ghost hidden inputs.
bye
maxx
When you add a calendar control to a form, CF adds a hidden input field to manage the real value of the date.
If you want to enable/disable the control using some other control event or js, you should be very careful choosing the identifier.
If you use the calendar id (e.g.: on selecting X disable #cal1) the hidden input is not disabled, if you use the calendar name (e.g. on unselecting Y disable cal1) the hidden input is disabled.
If you're not consistent you'll encounter problems. A disabled hidden input value is not submitted, for example.
Wouldn't it be better if this was managed at CF level?
Other controls use a ghost value and g2.forms.js has some code that probably manages in the proper way enabling and disabling of ghost hidden inputs.
bye
maxx