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) »
  • Any way to populate Drupal core Contact form with real name form Civi profile?
Pages: [1]

Author Topic: Any way to populate Drupal core Contact form with real name form Civi profile?  (Read 1553 times)

mdlueck

  • Ask me questions
  • ****
  • Posts: 382
  • Karma: 4
  • CiviCRM version: 4.7.24
  • CMS version: Drupal 6.x
  • MySQL version: 5.5.54
  • PHP version: 5.3.10
Any way to populate Drupal core Contact form with real name form Civi profile?
October 23, 2011, 11:36:01 am
We are making use of the Contact form which ships with the Drupal core.

We also make use of CiviCRM to collect member contact information, using CiviMember and a Profile.

When someone sends us a Contact form message, only their Drupal userid and email addy is supplied to us.

We would like some way to grab the FirstName / LastName from the Civi Profile if the user is logged into the site when they send the message.

Does anyone know of a way to have Civi supplement the Drupal core Contact form submissions with additional fields which come from CiviCRM?

Thanks!
--
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Any way to populate Drupal core Contact form with real name form Civi profile?
October 23, 2011, 01:11:28 pm
I am beginning to feel like a broken record here  ;D but you might want to see what the Webform-CiviCRM integration module does since it gives your solution. So switch from Contact Form to WebForm, use the CiviCRM integration Tab to set it to integrate with CiviCRM which then pulls civi data in to the form for logged in users - then your Webform email will include that data plus whatever fields they fill in.
Hope that helps
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

mdlueck

  • Ask me questions
  • ****
  • Posts: 382
  • Karma: 4
  • CiviCRM version: 4.7.24
  • CMS version: Drupal 6.x
  • MySQL version: 5.5.54
  • PHP version: 5.3.10
Re: Any way to populate Drupal core Contact form with real name form Civi profile?
October 26, 2011, 06:53:17 pm
Thank you, Pete. I had never heard of what you mentioned, so I will go off researching your Rx.
--
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Any way to populate Drupal core Contact form with real name form Civi profile?
October 26, 2011, 08:18:24 pm
I get a 5% commission on all sales   ;D
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Any way to populate Drupal core Contact form with real name form Civi profile?
January 04, 2012, 06:50:45 am
Thanks Pete -- our "get rich" scheme of giving away free software is about to hit jackpot... I can feel it.  ;)
Try asking your question on the new CiviCRM help site.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Any way to populate Drupal core Contact form with real name form Civi profile?
January 04, 2012, 12:27:27 pm
Quote from: mdlueck on October 23, 2011, 11:36:01 am
Does anyone know of a way to have Civi supplement the Drupal core Contact form submissions with additional fields which come from CiviCRM?

For the record, this precise feature could also of course be implemented with a few lines of code in a custom Drupal module. :)
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.

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Any way to populate Drupal core Contact form with real name form Civi profile?
January 05, 2012, 01:32:50 pm
For example:

http://drupal.org/project/civicrm_contact_form
Try asking your question on the new CiviCRM help site.

mdlueck

  • Ask me questions
  • ****
  • Posts: 382
  • Karma: 4
  • CiviCRM version: 4.7.24
  • CMS version: Drupal 6.x
  • MySQL version: 5.5.54
  • PHP version: 5.3.10
Re: Any way to populate Drupal core Contact form with real name form Civi profile?
January 11, 2012, 07:13:10 pm
Quote from: colemanw on January 05, 2012, 01:32:50 pm
For example:

http://drupal.org/project/civicrm_contact_form

Sounds great apart from:

Quote
If they do not already exist in CiviCRM, a new contact will be created.

I would think it would be easy enough to simply skip creating contacts if no matching contact were found. Ja?
--
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Any way to populate Drupal core Contact form with real name form Civi profile?
January 13, 2012, 07:52:25 am
Sure, just comment out the line that creates new contacts.
Try asking your question on the new CiviCRM help site.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Any way to populate Drupal core Contact form with real name form Civi profile?

This forum was archived on 2017-11-26.