This topic is locked

billing address same as shipping address

1/22/2008 9:30:09 AM
ASPRunnerPro General questions
K
kimz author

Hi,
I am in the process of building a customer database and when adding a new address I would like to have the option to copy the shipping address to the billing address if they are the same (userinput by checkbox ofcourse).
Is it possible to do this?
Kim

J
JOHNF777 1/22/2008

Use the EVENTS... Before Record Added function.
Create a "checkbox" field and use that field to qualify what to save.

Example:
[codebox]If dict("UseBilling")) = "Y" then

dict("ShipAddr")=dict("BillAddr")

dict("ShipCity")=dict("BillCity")

dict("ShipZip")=dict("BillZip")

End If

[/codebox]
Hope this helps.

K
kimz author 1/22/2008

Use the EVENTS... Before Record Added function.

Hope this helps.


thank you for your answer. i am on the right track now!

K
kimz author 1/23/2008

asprunner doesnt seem to notice the value of the checkbox <INPUT type=checkbox value="" name=UseBilling> in the script
can someone help me please?

K
kimz author 1/23/2008

woohoo, it works....it seems that i need to include the checkbox value in the database too.