Support

Home Forums Event Espresso Premium Ad shortcodes for custom registration field and add to registration email.

Ad shortcodes for custom registration field and add to registration email.

Posted: February 1, 2023 at 12:45 pm

Viewing 18 reply threads


rstorrs@usa.net

February 1, 2023 at 12:45 pm

I have read several posts about this issue but too complex or not enough information. Can I get step-by-step instructions on how to get custom registration fields to show up on outgoing email – Registration?


Tony

  • Support Staff

February 1, 2023 at 12:52 pm

Hi there,

Adding in custom shortcodes to the message system would be considered advanced customization and just giving a step-by-step to add a specific shortcode doesn’t really help when you then want another without understanding what is happening.

We have some documentation on how the message shortcodes work and how to add your own here:

https://eventespresso.com/wiki/messages-system-how-to-add-custom-message-shortcodes/

But we don’t provide a step-by-step walkthroughs/support for custom shortcodes as it’s outside the scope of our support.


rstorrs@usa.net

February 1, 2023 at 1:02 pm

Is there any other way to get custom registration fields to appear on the registration email?


Tony

  • Support Staff

February 1, 2023 at 1:31 pm

Can you define what you mean by ‘custom registration fields’?


rstorrs@usa.net

February 1, 2023 at 3:59 pm

On the registration form page, I added many additional fields for the person registering to fill out. This includes the name of a second attendee and other important information that I would like to send back to the registrant on the email.


Tony

  • Support Staff

February 2, 2023 at 3:48 am

Oh, so answers to custom questions, we have shortcodes for those already but those should already be included within the default Registration Approved email.

Have you edited the email to remove sections/shortcodes?

The [QUESTION_LIST] shortcode should already be pulling those answers in for you.


rstorrs@usa.net

February 2, 2023 at 9:20 am

I have not removed any sections. The [Question_List] section is there but Available Message Shortcodes is empty. I can send you an image.


Tony

  • Support Staff

February 2, 2023 at 9:23 am

Sure: https://eventespresso.com/wiki/troubleshooting-checklist/#screenshots

Or email them to support[at]eventespresso.com


Tony

  • Support Staff

February 2, 2023 at 12:39 pm

Ok, so your question list section isn’t empty, its trying to show you’ve used the shortcodes already.

Your question list section has [QUESTION][ANSWER]

That sections loops over each individual question assigned to the registration and outputs what it in that section for each individual question. So if the question was “Do you like cheese?” and the answer “Yes” then for that specific question it would output:

Do you like chees?Yes

Can you link me to the event so I can view how you have your questions setup up? We have shortcodes to pull answers for specific questions if needed, but I’ll need to see your setup.

What is it you trying to do in the email? As in whats is the specific output you are looking for.


rstorrs@usa.net

February 2, 2023 at 4:09 pm

This reply has been marked as private.


Tony

  • Support Staff

February 2, 2023 at 4:11 pm

Hi I’ve removed those credentials and will not be using them from here. The forums are public so I recommend against publishing credentials here.

To send login credential you can use this form:

https://eventespresso.com/send-login-details/

I would also recommend resetting your password for the above account.


Tony

  • Support Staff

February 8, 2023 at 1:30 pm

My apologies for the delayed reply.

Your message template has been edited and the [QUESTION_LIST] shortcode removed from the EVENT_LIST section.

This is the default content for that section: https://monosnap.com/file/Y6w9FNn31PsuWvjfXu3VXFVCP1480q

This is what is on your site:
https://monosnap.com/file/v0SNNbLT4lGvcOiCD84unKlt92xOOR

The shortcode that calls the QUESTION_LIST section has been removed, so you don’t get a list of questions/answer in your email.

You can either add <ul>[RECIPIENT_QUESTION_LIST]</ul> into that section somewhere (add that in text mode, not visual) and then change your QUESTION_LIST section use:

<li>[QUESTION] [ANSWER]</li>

Or if you just want a single specific question’s answer to be output you can use the [RECIPIENT_ANSWER_*] shortcode, you pass that shortcode the ‘Question Text’ value of the question to find, so with my example of “Do you like cheese?” as a question it would be:

[RECIPIENT_ANSWER_*Do you like cheese?]


rstorrs@usa.net

February 10, 2023 at 12:12 pm

okay I tried but not getting answers for custom fields.
I added these
[PRIMARY_REGISTRANT_EMAIL]
[PRIMARY_REGISTRANT_PHONE_NUMBER]
[PRIMARY_REGISTRANT_ANSWER_*CLUB]
[PRIMARY_REGISTRANT_ANSWER_*Club]
[PRIMARY_REGISTRANT_ANSWER_*DISTRICT]
[PRIMARY_REGISTRANT_ANSWER_*BADGE]

but the only thing that shows up is email and phone number. None of the custom fields show.
I tried [REGISTRANT_ANSWER_*CLUB] but that errors out.

I have tried on both the Reistrant email as well as the admin email – same result


rstorrs@usa.net

February 10, 2023 at 12:27 pm

I got the answers output by using

    [RECIPIENT_QUESTION_LIST]

> in the registrant email but that did not work on the admin email – it errored out. I also tried

    [PRIMARY_RECIPIENT_QUESTION_LIST]

but that also errored out.

I can’t figure out anything for the QUEST LIST section.


Tony

  • Support Staff

February 10, 2023 at 1:06 pm

So I’ll start with this one:

[PRIMARY_REGISTRANT_ANSWER_*CLUB]

The text after the _* must match the Question Text field exactly.

It looks like you are using ‘Question Label’ value, not the Question Text.

So for that one it looks like it should be:

[PRIMARY_REGISTRANT_ANSWER_*Lions Club Name]

Now…. something else to remember, is PRIMARY_REGISTRANT shortcodes only parse using the primary registrant of the group.

[RECIPIENT_ANSWER_*Lions Club Name] would parse to the answer for the current recipient.

It also depends on the specific location you are adding these to. Post a screenshot and I’ll take a look:

https://eventespresso.com/wiki/troubleshooting-checklist/#screenshots

I can’t figure out anything for the QUEST LIST section.

The QUESTION_LIST section only has 2 possible shortcodes, [QUESTION] and [ANSWER] because those are all you need for each individual specific question/answer in that section.

If you are pulling the answers to specific questions you do that outside of the QUESTION_LIST section.


rstorrs@usa.net

February 10, 2023 at 1:58 pm

I am getting pretty close. However, all the answers that have (2nd) as part of the question fail. Should I change the question text to remove the ()?


Tony

  • Support Staff

February 13, 2023 at 6:34 am

Hmmmm, strange, what is happening with those questions?

I’ve just tested a ‘This question (2nd)’ question using the shortcode:

[RECIPIENT_ANSWER_*This question (2nd)]

That output to the messages as expected:

https://monosnap.com/file/eUwtOQ84SAE5ijnDkUn8HASrnBV869

Am I doing something different to you?

(If there is an issue with message shortcodes I’ll get those fixed asap but I’ll need to be able to reproduce so the more details the better with this)


rstorrs@usa.net

February 13, 2023 at 8:50 am

You are correct. I found another problem that I had caused. I now have all but one answer appearing and am sure that it is also my fault.
Thanks for the help. This issue is resolved.


Tony

  • Support Staff

February 14, 2023 at 3:41 am

Awesome, if you run into issue with the above just let me know.

Viewing 18 reply threads

The support post ‘Ad shortcodes for custom registration field and add to registration email.’ 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