> values.enable = values.disable ? 0 : 1; > + // reverse the logic for the checkbox > + values.nowritecache = values.nowritecache == '0'?'1':'0'; It would be much nicer if this gets handled by the form element itself ... But we can apply this unless we have a better solution.