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) »
  • civi webform not working
Pages: [1]

Author Topic: civi webform not working  (Read 6641 times)

FrTommy

  • I post frequently
  • ***
  • Posts: 273
  • Karma: 2
  • CiviCRM version: 4.5.x
  • CMS version: Drupal 7.x
  • MySQL version: 5.5.32
  • PHP version: 5.3
civi webform not working
June 05, 2013, 07:04:23 pm
I created a civicrm webform that has 2 contacts. 1st is an individual and 2nd is an organization to collect current employer.

For the 1st individual i included 2 addresses and set webform to use the Home address for the 1st one and the Church address for the second one (this is a custom location type I created). For some reason webform refuses to read the Church address that is saved in Civi for my contact record. It instead pulls the address labeled with the custom location type of "Previous". I have recreated the webform several times and still the same thing happens....webform will not pull the "Church" address.

Also I have 3 phone fields on the webform. 1 Phone - Home, 2. Mobile - Home, 3. Phone - Church   (Phone Type - Phone Location).  In Civi I have two phones labeled for my contact record Mobile - Home and Phone - Church. when webform reads the record it makes the MObile - Home the Phone - Home number and the Phone - Church the Mobile - Home number.

So webform is mixing up the records.   Coleman, any idea what's going on?

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: civi webform not working
June 06, 2013, 06:15:28 pm
Webforms differ from profiles in that they do not pull addresses, phones, etc by location. This is mostly by design because of the fact that you can have more than one phone or email at the same location. The only rule with which webforms select them is that primary is always listed first.
The way to do what you are wanting is to expose the location field so the user can select it. You can give it a default value so that the creation of new ones will give the user sensible defaults.
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) »
  • civi webform not working

This forum was archived on 2017-11-26.