mecachisenros / cf-civicrm

Caldera Forms CiviCRM Integration
GNU Affero General Public License v3.0
30 stars 26 forks source link

How to pass contact_id and checksum into a second form #148

Open Upperholme opened 4 years ago

Upperholme commented 4 years ago

I'm moving from Drupal 7 to Wordpress and wondering how to achieve the following: In Drupal I can use a webform and webform_civicrm to create a contact record and then, on submission of the form, I can pass the contact id and checksum of the contact record that gets created on submission to a second form, in the URL, so that the second form is auto populated.

Can I do the same thing using CFC?

with Drupal the approach needs me to include hidden fields in the first form for contact_id and checksum, but I don't see any option to do this in CFC.

Any pointers most welcome.

danielstrum commented 4 years ago

I would also love to have this functionality. Perhaps we could sponsor this development?

danaskallman commented 4 years ago

Do you mean using variables? Here's Caldera Docs about Connecting Two Caldera Forms Using Passback Variables. Let me know if that's what you are looking for.

Upperholme commented 4 years ago

Does this approach work given the use case I've outlined in the original post? I couldn't work out how to access the contact ID or checksum from within the first form. In Drupal this is pretty straightforward, but with WP and Caldera I'm not at all clear, hence the question.

danielstrum commented 4 years ago

Hi Dana, Thanks for replying (and I hope you are well). Exactly as @Upperholme says, we would need to set a variable for the contact_id and checksum but there does not seem to be any way to do that?