Posted: December 18, 2019 at 4:08 am
|
I am trying to get the answers to personalized questions in a notification of “unapproved registration” but, despite the correct placement of the shortcodes (I tried both ANSWER_ * and QUESTION_LIST and also the “PRIMARY_REGISTRANT” versions. No error is displayed, simply nothing appears in the mail (the fields have been correctly filled in by the users). The texts of my questions contain slashes “/”, could it cause problems? |
Hi there, Do you want to list all of the custom questions from the registration(s), or specific questions/answers?
I’ll provide details on how to set either up if you let me know what you are trying to do.
It should not cause any issues. |
|
|
I am interested in a specific question (to show the company of the person registering), but it would also be good to visualize them all. I have to add it in the notification to the administrator, not the one that is sent to the user. I’ve tried both shortcodes, but none works as it should. I’m pretty sure I entered the shortcodes correctly, I also read several previous posts on this forum. |
Where are you adding the shortcodes in that template? What section? |
|
Actually, I can just show you both. So in Event Espresso -> Messages -> Default message tyemplates -> Not Approved Registration You have 2 ‘blue’ links right? One shows ‘Edit Event Admin’ and the other ‘Edit Primary Registrant’ The important point is they are not grey. If either/both of them are, that context is disabled by either the toggle at the top of the editor when edit it, or the ‘To’ field is set to nothing. So, in the Event Admin context, go to the There you want to add something like:
Add that before the closing The ANSWER_* shortcodes need the question text passed after the * and it must match exactly. That’s outputting the answer to a specific question and will work for all registrations in the group, not just the primary (that’s why I used ATTENDEE_LIST). —– If you want to output all questions/answers it’s a similar setup, but you use
The _LIST shortcodes basically call the sections in the template and loop over that section for each element it relates to. So in this case By default that will be empty so add something like this:
You can add additional html tags if preferred, but that section now goes over every question and outputs Save the template and retrigger a registration message, you’ll see something like this: https://monosnap.com/file/boEiQUmxHFXXFvh07GVr4X67Jm7OBe |
|
|
I use the personalized message and not the default one, but yes, the link is blue. Other customizations of the message are already active, the mail arrives configured with text the logos as I would like them. Even the code part includes the textual changes I have inserted, but the shortocode does not work. For example, if I write: “ Answers: I confirm that the code I added in the ATTENDE_LIST section. |
What do you have in the QUESTION_LIST section? |
|
|
Thanks to your suggestions I have solved. |
Great. Just to note for any future readers, there are only 2 valid shortcodes for the QUESTION_LIST section.
If you click on the icon next to each individual section you can see the shortcodes valid for that section. You can obviously use additional HTML markup in those sections but the message system has its own valid shortcodes and each section has specific shortcodes that are valid. |
|
The support post ‘ANSWER and QUESTION LIST shortcode don't works’ 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.