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) »
  • Using Civimail to auto populate a WebForm
Pages: [1]

Author Topic: Using Civimail to auto populate a WebForm  (Read 1061 times)

DaveT

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 1
  • CiviCRM version: 4.3.4
  • CMS version: Drupal 7
  • MySQL version: 5.5.28
  • PHP version: 5.3
Using Civimail to auto populate a WebForm
October 15, 2012, 01:17:41 pm

I can't seem to auto-populate a WebForm with contact information for a non-logged in user (who is a contact) who receives the form link via a CiviMail mailing.

the form autopopulates correctly for a user that is logged in (me!) but if I log out or test for a contact that is not logged in, the form presents itself but is blank.  It does update the correct contact when it is completed as long as the email address matches.


Here is the link from Drupal that is entered into CiviMail


To have this form auto-filled for anonymous users, enable the contact 1 "existing contact" field and send the following link from CiviMail:
http://mydomain.com/?q=ContactInfo&cid1={contact.contact_id}&{contact.checksum}


Here is the completed link from CiviMail:

http://mydomain.com/?q=ContactInfo&cid1=1&cs=701a9760813e6b9ca0de3a0ec3819d2b_1350329060_168


I have changed the widget to other options and they all seem to work - contact lookup, etc.  Anything that seems to be dependent on the cid1 and checksum valuies seems to fail.

Any suggestions?

Thanks

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Using Civimail to auto populate a WebForm
October 15, 2012, 01:29:40 pm
Hi
The checksum link you posted looks fine - i don't know if not using Clean URLs causes a problem - maybe worth checking

Just to ask the obvious question - this is a webform that has civicrm enabled using the webform_civicrm module?
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

DaveT

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 1
  • CiviCRM version: 4.3.4
  • CMS version: Drupal 7
  • MySQL version: 5.5.28
  • PHP version: 5.3
Re: Using Civimail to auto populate a WebForm
October 15, 2012, 02:36:21 pm
Thanks for the quick response

On the obvious question, I am using the Civicrm Drupal integration and required other modules.  (I am planning to switch from WordPress to Drupal specifically for this feature so it is very important to me.)

Re: the Clean URLs, I am getting the failure notice when I try that option.  The documentation on that issue is a bit difficult to follow.   I do have a .htaccess file for Apache/PHP/Drupal in my var/www/html directory.    I am using Drupal 7.15.

Is there any test I might run to determine if not using Clean URLs is the problem?

Thanks


DaveT

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 1
  • CiviCRM version: 4.3.4
  • CMS version: Drupal 7
  • MySQL version: 5.5.28
  • PHP version: 5.3
Re: Using Civimail to auto populate a WebForm
October 15, 2012, 05:43:14 pm
I got the Clean URLs to work - changed the .htaccess file and the httpd.conf file.

Still no luck with the link to the contact info. 

Here is the link with the CleanURL

http://(mydomain.com)/ContactInfo?cid1=1&cs=7be8d4129b7d1c422f6e2621f7f9e847_1350343571_168

It shows just fine if I am logged in but as soon as I log out, the form is empty.  it definitely is not passing the full set of data from the contact.  The fields are mapped correctly because if I fill out the form, they do update a contact record which matches the email address.  Otherwise a new contact is created.

Any other suggestions would be appreciated.

thanks

DaveT

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 1
  • CiviCRM version: 4.3.4
  • CMS version: Drupal 7
  • MySQL version: 5.5.28
  • PHP version: 5.3
Re: Using Civimail to auto populate a WebForm
October 15, 2012, 07:51:41 pm
Solved

The "Enforce Permissions" option under Filters on the Existing Contact component edit page needs to be unchecked.


petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Using Civimail to auto populate a WebForm
October 16, 2012, 10:07:09 pm
really? will check that before we use a checksum again - do your 'anonymous' users have any civicrm permissions?
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

DaveT

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 1
  • CiviCRM version: 4.3.4
  • CMS version: Drupal 7
  • MySQL version: 5.5.28
  • PHP version: 5.3
Re: Using Civimail to auto populate a WebForm
October 17, 2012, 08:15:08 am
Yes, anonymous users have a number of permissions including Profile Create, Edit, View

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Using Civimail to auto populate a WebForm

This forum was archived on 2017-11-26.