When a clone source object has multiple input fields (see the following URL).
if they are of type TEXT and with value, I want the clone target object to have the blank TEXT fields instead (no problem)
and if they are of type checkbox, I'd like them unchecked by default for all the checkbox fields in the target object (cloned object).
Additional note:
Each Checkbox field is immediately followed by an input Text field and the Rule is if the checkbox is checked then this input Text field must have value.
My first attempt was to set all the checkbox fields in the clone target object to false. Result: all the checkbox fields in the clone target object appears not checked, however, it's misleading because the form is submitted checkbox fields carry the same property of its source (before cloning), for instance, when D1 is cloned with D3 checked, the new D1 (cloned D1) has D3 unchecked, however, D3 in the cloned D1 is marked as required.
My second attempt was to first set the checkbox fields in the source object to false right before cloning and then turn the checkbox fields to true if they are true in the first place. It won't work neither. I guess because of object property inheritance (so, it turns the checkbox fields in the clone target object as well).
Thoughts?
Thanks.
http://54.80.71.115/dev/D1.html