Support (offered by community volunteers) > Using Profiles

TIP: How to copy address to Profile using JavaScript "Same as billing address"

<< < (7/8) > >>

tso2085:
Thanks Eileen,

So v4.2 will allow any address to be populated from any other, not just "same as billing address".  See my scenario in above post.

Thanks again!

Craig

Eileen:
No, it's same-as billing

tso2085:
Ahhh.. so could someone assist with my original question - quoted here for convenience...  Thanks!


--- Quote from: tso2085 on August 02, 2012, 04:32:52 am ---Seeking assistance....

I used this code:
http://wiki.civicrm.org/confluence/display/CRMDOC41/Add+'Same+as+billing+address'+button+for+convenience

to populate from onbehalf of organization during membership signup to an additonal profile for the primary contact, on the same signup page.

However, it is not working.  When I check the box to copy the address info, it does nothing.

For this scenario, the fields are a little different (onbehalf_organization_name, for instance) and am copying it to individual's work address fields (which end in "-2), but I think it should still work.

In my case, do I have more than one "form" on the page and need to distinguish that in the code perhaps?

Any assistance from you gurus would be greatly appreciated!

Craig

--- End quote ---

JulesM:

--- Quote from: Eileen on August 05, 2012, 01:12:02 pm ---No, it's same-as billing

--- End quote ---

Could you maybe tell me how to active this in 4.2's Beta? I just installed it on a test server but I can't find a way to add it to the profile I need to copy.

Thank you.

Dave Greenberg:
You should see the feature automagically if ...
1. You've enabled a payment processor for your contribution page that collects billing address (e.g. PayPal Pro, Auth.net ...)
2. You've include a profile in the contribution page the collects address info (i.e. to request mailing address, home address etc.)

I've configured a page on the public demo just now that does this - so if you jump on it before demo is reset you can see it:
http://drupal.demo.civicrm.org/civicrm/contribute/transact?reset=1&id=1

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version