Support

Home Forums Event Espresso Premium How to pass custom field data to EE registration for an event?

How to pass custom field data to EE registration for an event?

Posted: December 30, 2015 at 3:47 pm


Scott Case

December 30, 2015 at 3:47 pm

I’ve created company name as a custom field in my S2 Pro member management for a site. When we have events in EE, we are able to pass the user’s first name, last name and email address through to the registration, but not the custom field with their company name.

Is there documentation available instructing how to pass that or other fields through to the event registration so we can capture it?


Josh

  • Support Staff

December 30, 2015 at 5:10 pm

Hi Scott,

While the WP User Integration add-on for Event Espresso 4 isn’t able to map specific fields from S2 Member, you can set things up to autopopulate answers from previous registrations.

You first set up a Company Name registration form question in Event Espresso > Registration Forms > Questions. Then add the question to a group, and assign the question group to your events.

Then you add the following code to your site:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/checkout/mn_wp_user_addon_save_custom_answers_too.php

You can add the above to a functions plugin or into your WordPress theme’s functions.php file.

When the above code is activated on your site, the registrant’s previous answer to a custom registration form question will be auto-populated onto the registration form if they’re logged into the site when they register for an event.

The support post ‘How to pass custom field data to EE registration for an event?’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso