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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Two Forms on Same Page, One Submit Button
Pages: [1]

Author Topic: Two Forms on Same Page, One Submit Button  (Read 1050 times)

Shai

  • I post frequently
  • ***
  • Posts: 202
  • Karma: 8
    • Content2zero
  • CiviCRM version: 4.3.x, 4.4.x, 4.5.x
  • CMS version: Drupal 7
  • MySQL version: 5.5.x
  • PHP version: 5.3.x, 5.4.x
Two Forms on Same Page, One Submit Button
June 03, 2009, 12:51:14 pm
Is there a way to create a data entry form which has more than one form for the same profile. Upon submit, one record is created for each of the forms on the page.

Thanks,

Shai
Don't miss out! Sign up now for free expert advice on CiviCRM's new StackExchange help site.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Two Forms on Same Page, One Submit Button
June 03, 2009, 01:25:27 pm
I don't think so (w/o some custom coding). Might help folks suggest solutions if you explain the problem you're trying to solve in more detail (why "two forms", what fields / what two records, how are they related, etc.).
Protect your investment in CiviCRM by  becoming a Member!

Shai

  • I post frequently
  • ***
  • Posts: 202
  • Karma: 8
    • Content2zero
  • CiviCRM version: 4.3.x, 4.4.x, 4.5.x
  • CMS version: Drupal 7
  • MySQL version: 5.5.x
  • PHP version: 5.3.x, 5.4.x
Re: Two Forms on Same Page, One Submit Button
June 03, 2009, 02:45:18 pm
Thanks Dave for writing and asking:

The org I'm building the site for does couple's counseling (among other things) and they have an intake form for the couple. They report that the following situation is what happens with the intake: One member of the couple fills out the form for both people. This is typically before they get married so they have different addresses. The organization thinks that their potential clients have a "submit threshold" of 1, but they want to get data about both people.

What I did was put a footer note encouraging the second member of the couple to fill out their own form (upon "submit" another empty form comes up). I also added a field for the full name of the partner in case the other person doesn't fill out another form AND to provide a method for linking the two records together (But I'm hoping to have the second person click on the "person is a partner of" relationship field).

Their idea is to create a record in a non-normalized way: Person 1, Person 2, address for person 1, address for person 2, phone for person 1, phone for person 2 etc...

I'd prefer to not de-normalize the database like that.

They are working within a budget and I didn't promise a specific UI to them, so I can say "no" if there is going to be a bunch of custom coding.

This seems like it is a similar to problem to the one for event registration where one person signs two people for an event. I know you guys solved that one, but there probably hasn't been the demand to do something similar for this use-case.

I appreciate any advice/perspective...

Thanks much for supporting this great software,

Shai
Don't miss out! Sign up now for free expert advice on CiviCRM's new StackExchange help site.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Two Forms on Same Page, One Submit Button
June 03, 2009, 03:31:32 pm
Might want to try "repurposing" an event registration flow (free event) for this use case with some template tweaks and using the available description fields. Otherwise, I don't think there's a non-custom code solution.
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Two Forms on Same Page, One Submit Button

This forum was archived on 2017-11-26.