Posted: January 8, 2019 at 12:59 pm
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]
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.
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.
Both of those are fairly simple to do, how comfortable with PHP are you?
For example, this snippet:
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.
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.