I'm just learning MVC and can't figure out how to handle the following scenario, I have a form with a shipping address and billing address. All fields are required. There is also a checkbox for "Billing address matches delivery address." My problem is that the state of the model is never valid if both addresses are not completed. I could handle this pretty easily with some javascript that just added the values from the delivery address to the billing address fields, but if there is a better way to handle it, I would like to know. Any guideline on how this is usually handled will be great. Thank!
source
share