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 CiviEvent (Moderator: Yashodha Chaku) »
  • Pass Info from event registration to a custom form on thank you page
Pages: [1]

Author Topic: Pass Info from event registration to a custom form on thank you page  (Read 1083 times)

Colin Sagan

  • Guest
Pass Info from event registration to a custom form on thank you page
January 22, 2008, 03:31:54 pm
Due to some limitations in the searching and export of custom data, I would like to have some additional form fields for the user to fill out during the event registration process. The idea is for info that is only really useful for a short period of time (hotel info, flight times, etc) and doesn't need to be stored in CiviCRM. 

It is simple enough to just put the appropriate html for my form into the Thank you screen, but is it possible to pass either the CID of the person registering, or their first / middle / last name and email without requiring them to type it in again? I'm not sure how the CID assignment works while registering, does it look to see if a contact is in the database before the thank you screen? Or does it use a temporary CID, and then reconcile with the db afterwards?

Any advice would be appreciated.
Thanks,
Colin

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Pass Info from event registration to a custom form on thank you page
January 22, 2008, 06:21:04 pm
I'm pretty sure the contact ID of the registering participant is available to the Thank-you page template - and hence you could use "smarty" code in your HTML to pass it along. The other info you want might also be available. Enable debugging (in your test site :-) ) - and then reload the Thank-you page w/ "&smartyDebug=1" appended to the URL to see what variables you have to work with.

HOWEVER - I'm wondering why you wouldn't set these fields up as custom fields for "Participants" and then include them in the event registration flow. You can make them searchable, and they will export in the Find Participants >> Export flow.
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Pass Info from event registration to a custom form on thank you page

This forum was archived on 2017-11-26.