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 (Moderator: Donald Lobo) »
  • Conditional fields in Webforms don't save in CiviCRM
Pages: [1]

Author Topic: Conditional fields in Webforms don't save in CiviCRM  (Read 2028 times)

mauricem

  • I’m new here
  • *
  • Posts: 29
  • Karma: 0
Conditional fields in Webforms don't save in CiviCRM
October 01, 2012, 01:39:49 am
Currently exploring the Webform / CIviCRM integration.. Features look great especially when using the arrange_fields drupal module.
However in testing with Conditional fields in Webforms (i.e. fields that only appear on the form based on the value selected for a previous field), the values entered for conditional fields are not being saved on the CiviCRM contact record. Anyone seen this issue before?

Mlm

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Conditional fields in Webforms don't save in CiviCRM
October 01, 2012, 03:47:12 am
No I don't think so, and a lot of people are using conditional fields without encountering that issue. Can you please provide more detail about how to trigger the bug?

BTW arrange_fields and webform_conditional don't play very nicely together. But webform_layout is a good alternative to arrange_fields and overcomes many of the other module's shortcomings like not working with fieldsets and conditionals.
« Last Edit: October 01, 2012, 06:52:58 am by Coleman Watts »
Try asking your question on the new CiviCRM help site.

mauricem

  • I’m new here
  • *
  • Posts: 29
  • Karma: 0
Re: Conditional fields in Webforms don't save in CiviCRM
October 01, 2012, 08:50:01 am
Thx for the response.. we're using:
- CiviCRM 4.2.1.
- Webform 6.x-3.18
- Webform Conditional 6.x-1.1   
- Webform CiviCRM Integration 6.x-2.6
- Arrange Fields 6.x-1.6

We'll take the suggestion and turn off the Arrange_FIelds 1st, to see if that's the issue, then take a look at the webform_layout module instead..

Rgds, Mlm

mauricem

  • I’m new here
  • *
  • Posts: 29
  • Karma: 0
Re: Conditional fields in Webforms don't save in CiviCRM
October 03, 2012, 01:59:55 pm
We've tried this with Arrange_FIelds module turned off, however the problem of not storing the conditional fields still persists. Any suggestions? Can you confirm that Webform Conditional 6.x-1.1 is compatible with CiviCRM 4.2.1. ?

Mlm

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Conditional fields in Webforms don't save in CiviCRM
October 04, 2012, 07:56:01 am
The D6 version of the module is no longer "supported" by me although I suppose that's all relative since I'm still answering your question :)
It worked last time I checked. Can you confirm that the fields are getting saved in the webform submission but not the crm database and try to pin the problem down to some combination of:
webform_civicrm enabled/disabled
webform_conditional enabled/disabled
non-civicrm fields work/don't work with conditional
civicrm fields work/don't work with conditional
Try asking your question on the new CiviCRM help site.

aheath

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
    • Giant Rabbit
  • CiviCRM version: Varies
  • CMS version: Drupal 6, Drupal 7, WordPress 3.4.x
  • MySQL version: Varies
  • PHP version: Varies
Re: Conditional fields in Webforms don't save in CiviCRM
October 25, 2012, 04:31:31 pm
I'm also encountering this issue - conditional fields work until I enable CiviCRM processing, at which point no conditional field values get passed to Results.

Webform 1: Works
CiviCRM Processing :: OFF
Conditional Webform Field :: value shows in Results.
(Node export attached: webform-1-works.txt)

Webform 2: Bug
CiviCRM Processing :: ON
Conditional Webform Field :: value does not show in Results.
(Node export attached: webform-2-novalues.txt)

Webform 3: Bug
CiviCRM Processing :: ON
Conditional Webform Field :: value does not show in Results.
Conditional CiviCRM Field :: value does not show in Results.
(Node export attached: webform-3-novalues.txt)

We're using:
- Drupal 6.26
- CiviCRM 4.2.1.
- Webform 6.x-3.18
- Webform Conditional 6.x-1.1
- Webform CiviCRM Integration 6.x-2.6

Thanks in advance - I know this is a legacy module.  ;)

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Conditional fields in Webforms don't save in CiviCRM
October 25, 2012, 07:57:16 pm
I have a hunch about what might be causing it...
I've added a fix in the latest 6.x-dev which may solve the problem. Please report back here after trying it out.
Try asking your question on the new CiviCRM help site.

aheath

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
    • Giant Rabbit
  • CiviCRM version: Varies
  • CMS version: Drupal 6, Drupal 7, WordPress 3.4.x
  • MySQL version: Varies
  • PHP version: Varies
Re: Conditional fields in Webforms don't save in CiviCRM
October 26, 2012, 10:57:54 am
Et voilà - it works like a charm.

Thanks a million, Coleman! And many thanks for the speed on this front. The client will be delighted; the release date is looming.  :)

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Conditional fields in Webforms don't save in CiviCRM
October 26, 2012, 11:01:03 am
Feel free to shower me with karma  ;)
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 Drupal Modules (Moderator: Donald Lobo) »
  • Conditional fields in Webforms don't save in CiviCRM

This forum was archived on 2017-11-26.