Hello,
I have a form that submits to a confirmation page. On the form there is a shipping address and billing address. If the user chooses not to enter a shipping address, I want to automatically populate it with the billing info that the user has entered. I want this to happen when the user clicks the submit button so that the data will be present on the confirmation page.
My question is, what is the best way to do this? With a custom code action in the onSubmit area using php? Or with a LoadJS action in the onSubmit area using javascript? I want to populate the actual form values for the shipping address because down the line I will be submitting this info to Paypal using those form values.
Thanks in advance for any help!
I have a form that submits to a confirmation page. On the form there is a shipping address and billing address. If the user chooses not to enter a shipping address, I want to automatically populate it with the billing info that the user has entered. I want this to happen when the user clicks the submit button so that the data will be present on the confirmation page.
My question is, what is the best way to do this? With a custom code action in the onSubmit area using php? Or with a LoadJS action in the onSubmit area using javascript? I want to populate the actual form values for the shipping address because down the line I will be submitting this info to Paypal using those form values.
Thanks in advance for any help!