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) »
  • Online form to create two individual contacts
Pages: [1]

Author Topic: Online form to create two individual contacts  (Read 1593 times)

pjablonski

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: Wordpress 3.5
  • MySQL version: 5.5.27
  • PHP version: 5.3
Online form to create two individual contacts
December 31, 2012, 10:15:37 am
Hi,
New to CiviCRM and using it with WordPress. I work with an organization that supports people with a specific birth defect. I have a questions regarding contacts. I would like to create a web form that allows a constituent to become a member. No problem. I can create the form, the user fills it out and he is added to our contact list as an individual. That's great. However, what can you do in the following situation: Say a user wants to register and has child with the birth defect. I'd like to gather not only the user's information but also the child's along with an indication that they (the child) have the defect and their birth date. If the user's child does not have the birth defect I would not need to gather that info (yes/no birth defect; birth date). Once the form is submitted it would create two contact records, one for the user and the second for the child. I could then manually create the relationship and/or household info.

I initially thought why not just fill out two forms (one for the user, one for the child), but this may confuse users. Any thoughts appreciated. Thanks.

Pete

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Online form to create two individual contacts
December 31, 2012, 04:56:32 pm

in drupal you can do the below via the module webform_civicrm

wordpress has a similar webform like module (gravity forms) but no integration with civicrm. would be great to see if there are any hooks / integration points that we can use to integrate that with civi

alternatively, you will need to do it via 2 forms as u suggest

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

pjablonski

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: Wordpress 3.5
  • MySQL version: 5.5.27
  • PHP version: 5.3
Re: Online form to create two individual contacts
January 02, 2013, 04:25:36 am
Thanks Lobo for the confirmation. I guess I'll work with two forms for now and see how functionality for Wordpress develops.

Pete

penguintrax

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 2
  • CiviCRM version: 3.3x and 4.x depending on site
  • CMS version: Joomla 1.5 or 1.7 depending on site
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.17
Re: Online form to create two individual contacts
January 18, 2013, 10:38:52 am
Lobo,

Is there a way to accomplish this with Joomla and CiviCRM? Working on a new project and it would be helpful to have this functionality. Alternately, I was going to use the redirect on submit to take the contact to the second form in the process (spouse/partner profile).

Thanks,
Barbara

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Online form to create two individual contacts
January 18, 2013, 11:58:05 am

you will need to use the redirect on submit for joomla also

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

penguintrax

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 2
  • CiviCRM version: 3.3x and 4.x depending on site
  • CMS version: Joomla 1.5 or 1.7 depending on site
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.17
Re: Online form to create two individual contacts
January 30, 2013, 11:16:11 am
Thanks Lobo.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Online form to create two individual contacts

This forum was archived on 2017-11-26.