The way you would do this is by adding a script to the click handler of the "Same As" button. This click handler can be done in FormCalc or JavaScript. Use whatever you prefer. I would do it in JavaScript.
Here are the things your script needs to do:
- When selected, make all fields in the shipping address group read-only
- When selected, copy the data field by field from the billing section
- When unselected, make all fields in the shipping address group read and writable
- When unselected, set all the fields in the shipping address group to an empty string
If you need more help with the exact implementation, we need to know which scripting method you prefer.
Karl Heinz Kremer
PDF Acrobatics Without a Net
PDF Software Development, Training and More...
http://www.khkonsulting.com