How can I create the following functionality:
My form will include a checkbox which the user selects if they want to choose the "default" values for other fields on the form. (this would be similar to when presented with the checkbox to use billing info for shipping and when checked the shipping fields become populated). The controlling checkbox and dependent fields will be displayed on the same form/page.
What I cannot find is how to attach an event to the change of checkbox value that can execute code to set default values in the other fields. If there is a built-in hook for this I did not find it.
thanks.