Support

Home Forums Event Espresso Premium Registration field mapped to field in message

Registration field mapped to field in message

Posted: August 9, 2023 at 4:50 am

Viewing 7 reply threads


dave Segal

August 9, 2023 at 4:50 am

I have a registration form for events where I put in the client’s details:
First Name
Last Name
Email Address
Voucher Code

Voucher code is actually ‘Phone Number – System Question’. In this field I give each client a unique voucher code.

The Registration approved email uses that field and sends the client the code in their custom message.

I would like to add another field like this as I need to add a unique url for each client. I can’t work out how to do that.

Thank you.
Dave


Tony

  • Support Staff

August 9, 2023 at 5:35 am

Hi Dave,

Voucher code is actually ‘Phone Number – System Question’. In this field I give each client a unique voucher code.

I really can’t discourage this enough.

Repurposing system questions for something completely different than what they are intended for is going to come back and bite you at some point. EE expects that value to be a phone number, which is a value linked to an EE Contact, so not only are you using it for a different value but also for a registration-based question.

At some point down the line you are going to end up with a bunch of data that is being used in a completely different way than you expect it to be used and you will end up having to fix it with a custom data migration script.

Please reconsider this, Event Espresso allows you to add custom registration questions to be used for whatever you want so the above is unnecessary.

Go to Event Espresso -> Registration Form.

You’ll load the Questions admin by default.

At the top of the page is a ‘Add new question’ button, click that.

I’d start with Voucher if that’s how you want to collect the voucher details (Not using the promotions add-on to provide a discount with vouchers?). Create a ‘Voucher’ question, set the details of that question as needed then hit Save and Close.

Now hit the add new question button again, create another question for your URL field.

See the docs here: https://eventespresso.com/wiki/questions/

And: https://eventespresso.com/wiki/add-questions-event-espresso-question-groups/

So now you have 2 custom questions you can use but we need to add them to a question group.

Are those 2 questions going to be asked for every registration?

If so you could add them to the Personal Information question group but I’d use a custom group.

You’ll still be in the Questions admin, so click the Question Groups tab (shown above the question list table).

Create a new question group.

I’ll call mine ‘Additional Questions’, on the right of the section you’ll see a list of questions, select your Vouch and URL questions there to be included in the group.

Save.

Now edit the event in question, in the event editor you’ll see a section that allows you to set the question groups to be asked on that Event, like this:

https://monosnap.com/file/Nd7hqCRvlneiebawj2L0wgeE5WrmyZ

Select that ‘Additional Questions’ group on the event for at least the Primary Registrant (the top section).

Update the event and test a registration you should not see your 2 additional custom questions.


dave Segal

August 9, 2023 at 5:56 am

Thanks Tony, for your thorough response.
I have used the custom registration questions before however it does not solve my problem.

I need to send the details of the event in a custom message. When I add custom registration questions I cannot map that to a custom message field. For example if I make a custom registration question called “yourpersonalurl’ I cannot then output that in any field in the custom message sent to the client. I hope I have missed something.

Thanksd


Tony

  • Support Staff

August 9, 2023 at 6:01 am

Sure you can, we have dynamic shortcodes for pulling in the requesting questions.

It depends on the specific location you are editing in the template but:

[RECIPIENT_ANSWER_*{question_text}]

Works in most places.

So if you questions question text is ‘yourpersonalurl’, your shortcode would be:

[RECIPIENT_ANSWER_*yourpersonalurl]


Tony

  • Support Staff

August 9, 2023 at 6:03 am

Also, note that it’s the Question Text field you set on the shortcode, NOT the admin text field and it must match exactly.

Question text: yourpersonalurl
[RECIPIENT_ANSWER_*yourpersonalurl]

Is different from:

Question Text: yOuRpeRsonAlurL
[RECIPIENT_ANSWER_*yOuRpeRsonAlurL]


dave Segal

August 9, 2023 at 6:09 am

Thanks Tony, That is great and exciting news. I’ll test this out.


Tony

  • Support Staff

August 9, 2023 at 6:33 am

Awesome, any issues just let me know.


dave Segal

August 13, 2023 at 2:23 pm

Thank you, this worked perfectly!


Rio

  • Support Staff

August 13, 2023 at 4:56 pm

Awesome. If you need anything, feel free to reach us again.

Have a wonderful day.

Viewing 7 reply threads

The support post ‘Registration field mapped to field in message’ 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