CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • New version of: TIP: How to copy address to Profile using JavaScript "Same as bi
Pages: [1]

Author Topic: New version of: TIP: How to copy address to Profile using JavaScript "Same as bi  (Read 932 times)

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
New version of: TIP: How to copy address to Profile using JavaScript "Same as bi
May 06, 2011, 05:48:11 am
http://wiki.civicrm.org/confluence/display/CRMDOC40/Add+%27Same+as+billing+address%27+button+for+convenience

As noted at the bottom:

Quote
There are improvements to be made to this code, such as using slideUp() and slideDown() to hide/show the fields, but the code above works as is for now.

Requires no custom templates anyhow. :)
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: New version of: TIP: How to copy address to Profile using JavaScript "Same as bi
May 06, 2011, 06:23:23 am
Cool, and nice example of using a module to inject jquery magic without having to touch the template

For the lazy among us, could you put it on github or drupal.org ?

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: New version of: TIP: How to copy address to Profile using JavaScript "Same as bi
May 06, 2011, 07:40:44 am
Here you are: https://github.com/hershelsr/civicopyaddr
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

mirrorstage

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 1
  • CiviCRM version: 4.6.7
  • CMS version: Drupal 6.37
  • MySQL version: 5.6.23
  • PHP version: 5.4.42
Re: New version of: TIP: How to copy address to Profile using JavaScript "Same as bi
May 23, 2011, 06:02:17 pm
Well, I uploaded the three files into sites/default/modules/civicopyaddr, and ran update.php, but the module doesn't appear in my list of modules. I am stumped as to what else I might need to do; please let me know what steps I should take to enable and use this module. Thanks so much!

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: New version of: TIP: How to copy address to Profile using JavaScript "Same as bi
May 24, 2011, 04:55:10 am
You don't need to run update.php. All that is necessary is to put the files into the correct directory, as you seem to have.

Contact me offline and I can look at your site and see what's wrong.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

mirrorstage

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 1
  • CiviCRM version: 4.6.7
  • CMS version: Drupal 6.37
  • MySQL version: 5.6.23
  • PHP version: 5.4.42
Re: New version of: TIP: How to copy address to Profile using JavaScript "Same as bi
May 25, 2011, 10:34:23 am
I managed to get ti working--thanks! This is terrific!

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: New version of: TIP: How to copy address to Profile using JavaScript "Same as bi
May 25, 2011, 10:36:09 am
Glad to hear it. :)
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • New version of: TIP: How to copy address to Profile using JavaScript "Same as bi

This forum was archived on 2017-11-26.