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 »
  • How to pass cid2=
Pages: [1]

Author Topic: How to pass cid2=  (Read 442 times)

clarkac

  • Administrator
  • Ask me questions
  • *****
  • Posts: 399
  • Karma: 11
  • CiviCRM version: 4.4.11 & 4.5.5
  • CMS version: Drupal 7
  • MySQL version: 5.1.61-cll
  • PHP version: 5.3.27
How to pass cid2=
February 10, 2015, 04:36:22 am
I have a webform with contact 1 = Social Worker and contact 2 = the Organisation they work for.  My client wants the users to be able to change either one independently of the other. But what happens is that when they change the organisation from A to B then on Civi the Social Worker is changed to work for B, which is not wanted.  It should be left 'as is'.

One possible way to allow this would be for me to break the link between the 2 contacts.  Then, to allow the webform to pick up the organisation,  pass cid2= as part of the url that I send to users.  But I have no idea what to set cid2 to, or the checksum for cid2.    For example I tried  http://www.example.org/wf00?cid1={contact.contact_id}&{contact.checksum}?cid2={contact2.contact_id}&{contact2.checksum}  but that didn't work - the added ones didn't get resolved.

Any ideas, please?
« Last Edit: February 10, 2015, 04:55:49 am by clarkac »
Andy Clark

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: How to pass cid2=
February 10, 2015, 05:05:57 am
I don't understand. Are contact 1 & 2 related or not? It sounds like you are trying to have it both ways.
Try asking your question on the new CiviCRM help site.

clarkac

  • Administrator
  • Ask me questions
  • *****
  • Posts: 399
  • Karma: 11
  • CiviCRM version: 4.4.11 & 4.5.5
  • CMS version: Drupal 7
  • MySQL version: 5.1.61-cll
  • PHP version: 5.3.27
Re: How to pass cid2=
February 10, 2015, 05:14:03 am
They were related but my as my client wants to change either I am now assuming the relationship is a loose one! (yeah, I know that doesn't work well...).   I'm assuming I need to pass cid2 so that webform can pick up existing contact 2.
Andy Clark

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: How to pass cid2=
February 10, 2015, 05:17:46 am
Well fortunately for you, the creation of relationships in webform is already decoupled from the lookup of contacts by relationship - you can change one without affecting the other.
Are you using the current employer field? Or the relationship field? (you could use either to create the relationship - CiviCRM is redundant that way). Either way, just disable it. Or better yet, make it "user select" for the most flexibility.
Try asking your question on the new CiviCRM help site.

clarkac

  • Administrator
  • Ask me questions
  • *****
  • Posts: 399
  • Karma: 11
  • CiviCRM version: 4.4.11 & 4.5.5
  • CMS version: Drupal 7
  • MySQL version: 5.1.61-cll
  • PHP version: 5.3.27
Re: How to pass cid2=
February 10, 2015, 05:58:07 am
OK, many thanks - I don't need cid2 at all.
Andy Clark

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules »
  • Drupal Webform Integration »
  • How to pass cid2=

This forum was archived on 2017-11-26.