Answers.Body: <p>We have setup a webform which enables the creation (or updating existing information) of </p>
  
  <p>1) a household with its own data (phone number and physical/mailing address)</p>
  
  <p>2) one or two adults with their own data (defaulting to our Spouse/Spouse relationship) and makes them share the address of the Household</p>
  
  <p>3) 1-5 children with their own data who share the address of the Household and allows you to choose the relationship to Adults 1 and 2</p>
  
  <p>The length of the Node Export was more than Stack Exchange allowed me to paste in, so you can find the CSV here: <a href="https://www.dropbox.com/s/e4vw5a9o15c1aiz/node-export-household-and-family-webform.drupal?dl=0" rel="nofollow">https://www.dropbox.com/s/e4vw5a9o15c1aiz/node-export-household-and-family-webform.drupal?dl=0</a></p>
  
  <p>I don't know how this would work with importing back into your system with Node Export given that we'll have different relationships and tags and slightly different needs, but I think this will get you on the way.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-08-20T05:08:55.260Z
Answers.Text: Hi @Paul-Tahoe how did you get it to display all the fields in the webform after importing?  After changing the node type to webform, when I go to edit the webform I have no fields displaying, and when i go to CiviCrm tab, all the contacts are there but nothing for each of the contacts is selected. setting a field to selected created the fieldset/field but I dont have the rest of the logic per whats in the imported file
Answers.UserDisplayName: DMOZ
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-08T02:16:43.030Z
Answers.Text: Hmm, I was able to import the node but alas the resulting node shows nothing but clone content.  I went into edit and for some reason the format wasn't set.  Set it to filtered so now I get the "Use this form..." but there is nothing else.  I noticed what was imported was a page.  I changed it to webform and now I see it.  I get a bunch of "The webform component layout_box is not able to be displayed" at the top but I do see the form.  Now to see if I can change the relationship types to what we use.
Answers.UserDisplayName: Paul-Tahoe
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-10T17:57:36.683Z
Answers.Text: Any luck with the relationship types?  Oh, and as you discovered we use extensively the Webform Layout module [https://www.drupal.org/project/webform_layout ].
Answers.UserDisplayName: Allen Hutchison
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-14T21:22:16.073Z
Answers.Text: Yes, I was able to get the relationship types to work.  Pretty cool. You put a ton of work into setting this up.  I also added the webform layout module.  I'm a bit annoyed by the "standard" way webforms work when you pull up an existing hh, it doesn't automatically pull up the individuals unless you include the cid in the url.
Answers.UserDisplayName: Paul-Tahoe
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-06T00:03:10.383Z
Answers.LastActivityDate: 2015-10-06T00:03:10.383Z
Answers.UserDisplayName: Allen Hutchison
Answers.Body: <p>In re-reading your question, we also came up with a jQuery solution for creating the Household Name from the names of the Parent and Spouse.</p>
  
  <p>We added a class to the Parent First Name field, Parent Last Name field,  the Spouse field, and the Household Name field (through the webform field UI itself, not on the Webform-CiviCRM section).  (In our context most spouses have the same last name).  Here's the script we put into a Mark Up field.  Your markup text format input has to allow scripts:</p>
  
  <pre><code> &lt;script&gt;
   $=jQuery;
   function HouseholdName(){
     var ParentFirst = $(".parent-first").val();
     var ParentLast = $(".parent-last").val();
     var SpouseFirst = $(".spouse-first").val();
  
     if (SpouseFirst != ''){
       $(".household-name").val(SpouseFirst + ' &amp; ' + ParentFirst + ' ' + ParentLast);
     }
  
     else {
      $(".household-name").val(ParentFirst + ' ' + ParentLast);
     }
   }
  
   $(".parent-first").change(function(){
      HouseholdName();
   });
   $(".parent-last").change(function(){
      HouseholdName();
   });
   $(".spouse-first").change(function(){
      HouseholdName();
   });
  &lt;/script&gt;
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-15T22:52:06.053Z
Answers.Text: Cool.  I'll have to play with this.
Answers.UserDisplayName: Paul-Tahoe
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-15T18:29:23.363Z
Answers.LastActivityDate: 2015-10-15T18:29:23.363Z
Answers.UserDisplayName: Allen Hutchison
Answers.Body: <p>Yes, you can create a webform to do exactly that. I have created one. </p>
  
  <p>You just have to take the time to go through and set up the webform. </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-22T01:44:20.693Z
Answers.Text: Can you do the default from another field so the household name could be defaulted?  I assume you need to use tokens of some sort but haven't figured out how.  Also, if you change the field the default is based upon does it update the default?
Answers.UserDisplayName: Paul-Tahoe
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-22T01:50:55.297Z
Answers.Text: I believe it does have the ability to do something like that.
Answers.UserDisplayName: frTommy
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-22T00:50:27.763Z
Answers.LastActivityDate: 2015-09-22T00:50:27.763Z
Answers.UserDisplayName: frTommy
Body: <p>Civicrm is extremely flexible with relationships.  The downside of that is it's a pain to enter new household and their members.  My users complain bitterly about how many steps it takes.  Yes, there are some short cuts but it's still a lot of clicks.   99% of our households are husband wife and happen to live in the same house.</p>
  
  <p>Some of the pain points mentioned are for hh to sort along with individuals in any list of contacts, you have to create the household with last name first, e.g. Smith, Barb and Steve.  This means you then have to manually create the salutation manually, e.g. Dear Barb and Steve.  They also complain about the address saying things like "why can't the individuals automatically inherit the hh address or if one of the ind has an address why can't the rest inherit it"</p>
  
  <p>So has anyone create a form or maybe a webform that has something like this:</p>
  
  <p>Contact 1:  First Name, Last Name, email  </p>
  
  <p>Contact 2:  First Name, Last Name, email (If last name same leave blank or prepopulate last name from contact 1)  </p>
  
  <p>Shared Address info:  </p>
  
  <p>Household info:  Prepopulate household name from contact 1 and 2 (e.g. c1 Lastname, c1 first and c2 first or if c2 last is different C1 Last, C1 first and c2 Last, c2 first)<br>
  Prepopulate the salutations from c1 and c2 (e.g. Dear C1 First and C2 first)</p>
  
  <p>Then when you save it, it creates the three contact records and the relationships, with hh having the address and the ind sharing it.  </p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-22T01:21:59.880Z
Comments.Text: Want to confirm the CMS you are using?
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-22T01:36:07.607Z
Comments.Text: Production 4.5.8.  Dev 4.6.7  (Just about the time I say I'll upgrade production another bug that will affect us surfaces.)
Comments.UserDisplayName: Paul-Tahoe
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-22T02:08:53.187Z
Comments.Text: CMS not civicrm - Joomla, WP or Drupal?
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-22T02:53:32.710Z
Comments.Text: Ah, drupal.  (I wouldn't have mentioned webforms for the others but you wouldn't know that).
Comments.UserDisplayName: Paul-Tahoe
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-22T03:27:23.930Z
Comments.Text: Hi Paul, we have done what you're talking about with the drupal webform module. Takes work to set it up but it is some of the best time we've spent. Our users use it every day. I will try to write up the formula tomorrow at work.
Comments.UserDisplayName: Allen Hutchison
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-22T03:29:49.417Z
Comments.Text: Hi Paul - i didn't want to assume re the reference to 'webforms' as it is kind of generic concept - thanks for confirming. Allen - do you want to try a node_export - it often works with Drupal Webform_civicrm forms
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-22T03:40:01.820Z
Comments.Text: Excellent Pete, I didn't know that node export worked for webforms!
Comments.UserDisplayName: Allen Hutchison
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-22T14:39:18.813Z
Comments.Text: If node exports works that will be cool and save a lot of work.  Plus I might use it for moving webforms from dev to prod.
Comments.UserDisplayName: Paul-Tahoe
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-23T04:48:48.060Z
Comments.Text: Paul, I haven't forgotten! Had to take a sick day today, so I'll aim for tomorrow.
Comments.UserDisplayName: Allen Hutchison
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-23T18:38:18.257Z
Comments.Text: FYI yes node_export does work with webform_civicrm - just make sure the webform_civicrm module is installed and enabled on the site you import to.
Comments.UserDisplayName: Coleman
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-10-05T23:57:14.743Z
Comments.Text: Paul, my apologies on the delay!
Comments.UserDisplayName: Allen Hutchison
Tags: <webform-civicrm><households>
Title: Has anyone come up with an easy way to enter a household, the members, create the relationship, share the address, etc.?
ThreadText: # Has anyone come up with an easy way to enter a household, the members, create the relationship, share the address, etc.?
  
  (Asked by: username_0 on 2015-09-22)
  
  Civicrm is extremely flexible with relationships. The downside of that is it's a pain to enter new household and their members. My users complain bitterly about how many steps it takes. Yes, there are some short cuts but it's still a lot of clicks. 99% of our households are husband wife and happen to live in the same house.
  
  Some of the pain points mentioned are for hh to sort along with individuals in any list of contacts, you have to create the household with last name first, e.g. Smith, Barb and Steve. This means you then have to manually create the salutation manually, e.g. Dear Barb and Steve. They also complain about the address saying things like "why can't the individuals automatically inherit the hh address or if one of the ind has an address why can't the rest inherit it"
  
  So has anyone create a form or maybe a webform that has something like this:
  
  Contact 1: First Name, Last Name, email
  
  Contact 2: First Name, Last Name, email (If last name same leave blank or prepopulate last name from contact 1)
  
  Shared Address info:
  
  Household info: Prepopulate household name from contact 1 and 2 (e.g. c1 Lastname, c1 first and c2 first or if c2 last is different C1 Last, C1 first and c2 Last, c2 first)  
  Prepopulate the salutations from c1 and c2 (e.g. Dear C1 First and C2 first)
  
  Then when you save it, it creates the three contact records and the relationships, with hh having the address and the ind sharing it.
  
  **Tags:** webform-civicrm, households
  
  > **Comments:**
  > **username_1**: Want to confirm the CMS you are using?  
  > **username_0**: Production 4.5.8.  Dev 4.6.7  (Just about the time I say I'll upgrade production another bug that will affect us surfaces.)  
  > **username_1**: CMS not civicrm - Joomla, WP or Drupal?  
  > **username_0**: Ah, drupal.  (I wouldn't have mentioned webforms for the others but you wouldn't know that).  
  > **username_2**: Hi Paul, we have done what you're talking about with the drupal webform module. Takes work to set it up but it is some of the best time we've spent. Our users use it every day. I will try to write up the formula tomorrow at work.  
  > **username_1**: Hi Paul - i didn't want to assume re the reference to 'webforms' as it is kind of generic concept - thanks for confirming. username_2 - do you want to try a node_export - it often works with Drupal Webform_civicrm forms  
  > **username_2**: Excellent Pete, I didn't know that node export worked for webforms!  
  > **username_0**: If node exports works that will be cool and save a lot of work.  Plus I might use it for moving webforms from dev to prod.  
  > **username_2**: Paul, I haven't forgotten! Had to take a sick day today, so I'll aim for tomorrow.  
  > **username_3**: FYI yes node_export does work with webform_civicrm - just make sure the webform_civicrm module is installed and enabled on the site you import to.  
  > **username_2**: Paul, my apologies on the delay!  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_2 on 2015-10-06. Score: 4
  
  We have setup a webform which enables the creation (or updating existing information) of
  
  1) a household with its own data (phone number and physical/mailing address)
  
  2) one or two adults with their own data (defaulting to our Spouse/Spouse relationship) and makes them share the address of the Household
  
  3) 1-5 children with their own data who share the address of the Household and allows you to choose the relationship to Adults 1 and 2
  
  The length of the Node Export was more than Stack Exchange allowed me to paste in, so you can find the CSV here: <https://www.dropbox.com/s/e4vw5a9o15c1aiz/node-export-household-and-family-webform.drupal?dl=0>
  
  I don't know how this would work with importing back into your system with Node Export given that we'll have different relationships and tags and slightly different needs, but I think this will get you on the way.
  
  > **Comments:**
  > **username_0**: Hmm, I was able to import the node but alas the resulting node shows nothing but clone content.  I went into edit and for some reason the format wasn't set.  Set it to filtered so now I get the "Use this form..." but there is nothing else.  I noticed what was imported was a page.  I changed it to webform and now I see it.  I get a bunch of "The webform component layout_box is not able to be displayed" at the top but I do see the form.  Now to see if I can change the relationship types to what we use.  
  > **username_2**: Any luck with the relationship types?  Oh, and as you discovered we use extensively the Webform Layout module [https://www.drupal.org/project/webform_layout ].  
  > **username_0**: Yes, I was able to get the relationship types to work.  Pretty cool. You put a ton of work into setting this up.  I also added the webform layout module.  I'm a bit annoyed by the "standard" way webforms work when you pull up an existing hh, it doesn't automatically pull up the individuals unless you include the cid in the url.  
  > **username_4**: Hi @username_0 how did you get it to display all the fields in the webform after importing?  After changing the node type to webform, when I go to edit the webform I have no fields displaying, and when i go to CiviCrm tab, all the contacts are there but nothing for each of the contacts is selected. setting a field to selected created the fieldset/field but I dont have the rest of the logic per whats in the imported file  
  
  ---
  
  ### Answer by username_2 on 2015-10-15. Score: 2
  
  In re-reading your question, we also came up with a jQuery solution for creating the Household Name from the names of the Parent and Spouse.
  
  We added a class to the Parent First Name field, Parent Last Name field, the Spouse field, and the Household Name field (through the webform field UI itself, not on the Webform-CiviCRM section). (In our context most spouses have the same last name). Here's the script we put into a Mark Up field. Your markup text format input has to allow scripts:
  
  ```
   <script>
   $=jQuery;
   function HouseholdName(){
     var ParentFirst = $(".parent-first").val();
     var ParentLast = $(".parent-last").val();
     var SpouseFirst = $(".spouse-first").val();
  
     if (SpouseFirst != ''){
       $(".household-name").val(SpouseFirst + ' & ' + ParentFirst + ' ' + ParentLast);
     }
  
     else {
      $(".household-name").val(ParentFirst + ' ' + ParentLast);
     }
   }
  
   $(".parent-first").change(function(){
      HouseholdName();
   });
   $(".parent-last").change(function(){
      HouseholdName();
   });
   $(".spouse-first").change(function(){
      HouseholdName();
   });
  </script>
  
  ```
  
  > **Comments:**
  > **username_0**: Cool.  I'll have to play with this.  
  
  ---
  
  ### Answer by username_5 on 2015-09-22. Score: 1
  
  Yes, you can create a webform to do exactly that. I have created one.
  
  You just have to take the time to go through and set up the webform.
  
  > **Comments:**
  > **username_0**: Can you do the default from another field so the household name could be defaulted?  I assume you need to use tokens of some sort but haven't figured out how.  Also, if you change the field the default is based upon does it update the default?  
  > **username_5**: I believe it does have the ability to do something like that.  
  
  ---
  
  