Hi
Can someone help with with the following:
I have a new customer registration page and I would like to add a button where when the user clicks on the button, it will copy the billing address to shipping address.
I have tried to add onclick events to a button but I don't know where to add the custom scripts. Can someone suggest how I can accomplish this?
Copy Address Fields
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/forms.html
http://www.wysiwygwebbuilder.com/form_wizard.html
Frequently Asked Questions about Forms
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/forms.html
http://www.wysiwygwebbuilder.com/form_wizard.html
Frequently Asked Questions about Forms
Re: Copy Address Fields
There is no standard solution for this, because there is no way to do this 'visually'. So, this will require a custom script.
For example:
https://www.w3schools.com/howto/howto_j ... pboard.asp
For example:
https://www.w3schools.com/howto/howto_j ... pboard.asp
- BaconFries
-
- Posts: 5874
- Joined: Thu Aug 16, 2007 7:32 pm
Re: Copy Address Fields
See the following with demo but in this you either select one or another radio button to copy the fields
https://www.plus2net.com/javascript_tut ... y-data.php
https://www.plus2net.com/javascript_tut ... y-data.php
-
-
- Posts: 28
- Joined: Tue Jun 02, 2020 10:04 am
Re: Copy Address Fields
Thanks @BaconFries
This helped me a lot
This helped me a lot
