Fields checked vs disabled inconsistency during update
-
I wish to confirm a behavior with all fields elements that are configured with checkbox functionality.
If I disable a field in the template:
$this->record->yp_prog->fields->cansail_12_program->readonly = 1; // Form Element: Multiselect/Other $this->record->yp_prog->fields->cansail_34_program->readonly = 1; // Form Element: Multiselect Check $this->record->yp_prog->fields->cansail_56_program->readonly = 1; // Form Element: Multiselect Check
The behavior that I get during an update is if the checkbox was checked on one of the fields and the access is disabled the field will get promoted unchecked in the DB.
I did find a quick remedy to the problem. Upon button submission to enable the access with a jquery call:
$('.pdb-submit').click(function() { $(".multicheckbox, .checkbox-other-control-group").each(function() { $(this).find(":input:checkbox").attr("disabled", false); }); });
But not exactly sure if this is the expected behavior?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Fields checked vs disabled inconsistency during update’ is closed to new replies.