I am expanding forms that are created with Zend_Dojo, for this i have a special task that i have hard time solving.
The form is for purchase and consist of two address groups: payerAddressGroup and deliveryAddressGroup.
These two groups are separated, so you can define two individual addresses. Although it occurs many times that the payerAddress is identical to the deliveryAddress.
So i wanted to resolve this task by adding a checkBox that could disable the deliveryAddressGroup, and by the value of the checkBox only use the payerAddress.
The form creation is made with extension of Zend_Dojo_Form.
I hope it makes sense!
Thanks.
I hope it makes sense?
You can watch the ‘checked’ property.
Your markup should look something like this.