Support

Home Forums Event Espresso Premium Hidden Fields Export To Mailchimp

Hidden Fields Export To Mailchimp

Posted: January 8, 2019 at 12:59 pm


goneilbell

January 8, 2019 at 12:59 pm

Hi

I would like to have hidden fields in my registration form that export to Mailchimp.

How do I do this? For example I want a hidden field that would populate either with text I determine – or a field that would be hidden but would populate for example with the [event_author]

Thanks!


Tony

  • Support Staff

January 9, 2019 at 5:27 am

Hi there,

Currently, we don’t have a UI that will allow you to do this, you can select answers to questions on the registration form, but to add ‘hidden’ inputs you’ll need to use some code on the site.

If you let me know which fields you are looking to add I can give you an example snippet you can work from on how to add those.


goneilbell

January 9, 2019 at 5:56 am

Hi Tony

Thanks for coming back to me.

I would like to have the name of the Event Author export to Mailchimp and the name of the event – which are variable.

Also I would like to add my own things that don’t change such as a hidden field to say we have obtained consent for each of the following Email, SMS, Post, Telephone as well as one or two other related things.

Thanks


Tony

  • Support Staff

January 9, 2019 at 12:10 pm

I would like to have the name of the Event Author export to Mailchimp and the name of the event – which are variable.

Both of those are fairly simple to do, how comfortable with PHP are you?

For example, this snippet:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/addons/eea-mailchimp/tw_eea_mailchimp_event_name.php

Adds the event name to an EVENTNAME merge var, adding the Event Author to another merge var could easily be done in the same snippet.

Also I would like to add my own things that don’t change such as a hidden field to say we have obtained consent for each of the following Email, SMS, Post, Telephone as well as one or two other related things.

If those are from outside of the EE registration form the steps in which you pull that information in is a little different, but adding them to the merge_vars in the above snippet is pretty much the same.

Without more details I can’t give you a better example of how to pull that info info and send it over to MailChimp.

One important note is the subscription call is made during the registration, so if you’re looking to add values to a registration after it’s been made and then send that over to MailChimp the above isn’t going to work.

The support post ‘Hidden Fields Export To Mailchimp’ 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