Hello,
I have a form that collects both billing address and service address info. Most times these are the same and for some people they are different. For the folks who have the same billing and service addresses is there any way to create a checkbox that when selected it will pre fill their service address with the data they already enterd in the billing address fields? This way they won't have to enter the same info twice.
Thanks, Gabe
Hi Gabe,
You will need a piece of JS code which will set the value attributes of the shipping fields to the same values of billing ones on the checkbox onChange event, you can do this easily if you have some Mootools knowledge, if not then please let us know and I will try to post an example soon.
Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Thanks Max,
I will definitly need the code. I will also do some searching and if I find it, I will post back.
Gabe
Any chance on getting the code for this that will work in V4 from anyone?
Hi gabedaly,
What is the Form HTML you want to use it with?
Bob
Standard form (name email address etc) with authorize.net plugin. I can map all my fields if you can provide a small example. Hope this helps.
Thanks Bob,
Gabe
Hi Gabe,
It works when the checkbox is clicked, or should do.
You have different spellings of 'biling'/'billing' which are probably breaking the code and the if logic looks a bit dodgy. I suggest that you get the basic version working on one input then add another input to see how to scale it.
Worth using a web developer tool to check for errors too: FireBug on FireFox, F12 in IE8/9 shift+ctrl+i on Chrome.
Bob
THANK YOU THANK YOU!! Works perfect even with a drop down state select. Beer is on its way.