Support

Home Forums Event Espresso Premium Retrieving Questions and Answers

Retrieving Questions and Answers

Posted: June 13, 2022 at 3:48 pm

Viewing 3 reply threads


dionne.c

June 13, 2022 at 3:48 pm

How do I retrieve answers and questions? For example, I have a question for each person who registers for the conference about any dietary restrictions so I know how many vegan meals to order for the conference. How can I easily retrieve the answers for that specific question.

I had tried to edit the Emails that get sent to Admin to include the answers and questions under [QUESTION_LIST] to include the short codes for [QUESTION] [ANSWER] but when I ran a test, I still did not see in the email the questions and answers.


Tony

  • Support Staff

June 15, 2022 at 8:18 am

Hi there,

EE provides a lot of flexibility with what is used within the message system but with that comes a bit of a learning curve.

By default, the registration questions should already be included within the email sent to the admin but it does depend on any edits you’ve made to the template.

First, I assume this is the ‘Registration Approved’ message template?

Are you editing the event admin template? The current ‘context’ is shown at the top of the page where in brackets.

See: https://eventespresso.com/wiki/messages-system-working-with-message-contexts/

The [QUESTION_LIST] shortcode loops each individual custom question on a registration and outputs whatever is saved within the QUESTION_LIST section, parsing any shortcodes each time.

So using something like:


<li><strong>Question:</strong> [QUESTION]</li>
<li><strong>Answer: </strong>[ANSWER]</li>

Will output:

Question: {the question text}
Answer: {the answer provided}

For each individual question, as long as QUESTION_LIST has been called within the template. By default that happens in the ATTENDEE_LIST section, but that also means [ATTENDEE_LIST] needs to have been called somewhere, like this:

https://monosnap.com/file/ZXn14fflP9nJAvodaEtyGzHS8zTwgl

If you can add a screenshot of your message template sections I can check those over and let you know what needs to be changed.

Or if you only want the answer to a specific question, we also have a shortcode to do that, which do you prefer?


dionne.c

June 16, 2022 at 2:08 pm

Thank you for your reply. Very helpful.


Tony

  • Support Staff

June 17, 2022 at 3:29 am

You’re most welcome 🙂

Any further questions just let us know.

Viewing 3 reply threads

The support post ‘Retrieving Questions and Answers’ 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