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 Drupal Modules »
  • Drupal Webform Integration »
  • Webform not creating households
Pages: [1]

Author Topic: Webform not creating households  (Read 632 times)

naomisl

  • I post occasionally
  • **
  • Posts: 51
  • Karma: 0
  • CiviCRM version: 4.5.3
  • CMS version: Drupal 7.32
Webform not creating households
May 04, 2014, 07:41:26 pm
I've got a webform 4.0-rc3 & civicrm webform integration 4.5, and set up a form that creates individuals and households. The individuals have the relationship of "is a member of" to the households. The issue is that when I test the form, the households are not created in civicrm, even though all the individuals are. Has anyone else had this issue before? What did you do to fix it? 

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Webform not creating households
May 05, 2014, 11:28:43 am
You need to give the household a name or it will not be created.
Try asking your question on the new CiviCRM help site.

naomisl

  • I post occasionally
  • **
  • Posts: 51
  • Karma: 0
  • CiviCRM version: 4.5.3
  • CMS version: Drupal 7.32
Re: Webform not creating households
May 05, 2014, 11:51:02 am
Thanks! I definitely hadn't added a household name.

I should be able to have the field automatically filled in so the user never has to even see it, I think. Hm...on to the next issue:
I tried setting the default value of the household name field to be the first line of the address, like so: [webform:{civicrm_2_contact_1_address_street_address}-value]

But now when I load the form I get this error messege at the top:
    Notice: Undefined index: webform in webform_rules_tokens() (line 213 of /home/makom/www/www/sites/all/modules/webform_rules/webform_rules.module).
    Warning: array_keys() expects parameter 1 to be array, null given in webform_rules_tokens() (line 213 of /home/makom/www/www/sites/all/modules/webform_rules/webform_rules.module).
    Warning: in_array() expects parameter 2 to be array, null given in webform_rules_tokens() (line 228 of /home/makom/www/www/sites/all/modules/webform_rules/webform_rules.module).

Where was my misstep? Is the syntax all wrong? Does it have trouble if the field it's pulling from is not already filled in? Or is it something else entirely? I guess I could ask the user to make up a household name, but I'd much rather they be consistently named.

naomisl

  • I post occasionally
  • **
  • Posts: 51
  • Karma: 0
  • CiviCRM version: 4.5.3
  • CMS version: Drupal 7.32
Re: Webform not creating households
May 05, 2014, 03:31:40 pm
Alright, I've figured out what the problem is. I don't have a solution yet, so if you do please share, but I am hopeful that one exists.

Webform Tokens, which used to be a separate module, is incorporated into Webform 4 core. Unfortunately, Webform Tokens and Webform Rules don't place nicely, because they use the same syntax for their tokens. So...I need to work on getting them to talk to each other. It isn't solved yet, but it is officially no longer a civicrm issue. If anyone knows an answer though, please don't leet that stop you :)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules »
  • Drupal Webform Integration »
  • Webform not creating households

This forum was archived on 2017-11-26.