Support

Home Forums Event Espresso Premium Shortcode for New Questions in Registration Form

Shortcode for New Questions in Registration Form

Posted: October 29, 2017 at 9:47 pm

Viewing 12 reply threads


iwbnet

October 29, 2017 at 9:47 pm

We have added some new questions in the registration form, how can we include that information in the message templates? e.g. we have a question for “school name”, and i want to include the school name on the invoice in the billing information?


Tony

  • Support Staff

October 30, 2017 at 4:13 am

Hi there,

Is school name included within the Primary Registrants questions?

If so you can use the [PRIMARY_REGISTRANT_ANSWER_*] shortcode.

That shortcode takes the question text after the * and pulls the answer for that question, note that question text must match exactly.

You mentioned ‘school name’ above, if that’s is your ‘question text’ value the shortcode would be:

[PRIMARY_REGISTRANT_ANSWER_*school name]

Add that to the Invoice template within Event Espresso -> Messages -> Default message templates -> Invoice.


iwbnet

October 31, 2017 at 5:27 am

I’ve tried to do that but each time I get a huge error message on the screen which says:

An error has occurred:
The following shortcodes were found in the “Main Content” field that ARE not valid: [PRIMARY_REGISTRANT_ANSWER_School or Organisation]
Valid shortcodes for this field are: [COMPANY], [CO_ADD1], [CO_ADD2], [CO_CITY], [CO_STATE], [CO_ZIP], [CO_LOGO], [CO_EMAIL], [CO_PHONE], [CO_LOGO_URL], [CO_FACEBOOK_URL], [CO_TWITTER_URL], [CO_PINTEREST_URL], [CO_GOOGLE_URL], [CO_LINKEDIN_URL], [CO_INSTAGRAM_URL], [CO_TAX_NUMBER_*], [PRIMARY_REGISTRANT_TICKET_LIST], [PRIMARY_REGISTRANT_DATETIME_LIST], [PRIMARY_REGISTRANT_QUESTION_LIST], [PRIMARY_REGISTRANT_FNAME], [PRIMARY_REGISTRANT_LNAME], [PRIMARY_REGISTRANT_EMAIL], [PRIMARY_REGISTRANT_REGISTRATION_ID], [PRIMARY_REGISTRANT_REGISTRATION_CODE], [PRIMARY_REGISTRANT_PHONE_NUMBER], [PRIMARY_REGISTRANT_ADDRESS], [PRIMARY_REGISTRANT_ADDRESS2], [PRIMARY_REGISTRANT_CITY], [PRIMARY_REGISTRANT_ZIP_PC], [PRIMARY_REGISTRANT_ADDRESS_STATE], [PRIMARY_REGISTRANT_COUNTRY], [PRIMARY_REGISTRANT_REGISTRATION_DATE], [PRIMARY_REGISTRANT_FRONTEND_EDIT_REG_LINK], [PRIMARY_REGISTRANT_ANSWER_*], [TXN_ID], [PAYMENT_URL], [PAYMENT_LINK_IF_NEEDED_*], [PAYMENT_DUE_DATE_*], [INVOICE_LINK], [INVOICE_URL], [INVOICE_LOGO_URL], [INVOICE_LOGO], [INVOICE_PAYEE_NAME], [INVOICE_PAYEE_ADDRESS], [INVOICE_PAYMENT_INSTRUCTIONS], [INVOICE_PAYEE_EMAIL], [INVOICE_PAYEE_TAX_NUMBER_*], [TOTAL_COST], [TXN_STATUS], [TXN_STATUS_ID], [PAYMENT_STATUS], [PAYMENT_GATEWAY], [AMOUNT_PAID], [LAST_AMOUNT_PAID], [TOTAL_AMOUNT_PAID], [TOTAL_OWING], [TXN_SUBTOTAL], [TXN_TAX_SUBTOTAL], [OWING_STATUS_MESSAGE_*], [TXN_TOTAL_TICKETS], [TKT_QTY_PURCHASED], [TRANSACTION_ADMIN_URL], [RECEIPT_URL], [INVOICE_RECEIPT_SWITCHER_URL], [INVOICE_RECEIPT_SWITCHER_BUTTON], [LAST_PAYMENT_TRANSACTION_ID], [EVENT_LIST], [PAYMENT_LIST_*], [VENUE_TITLE], [VENUE_DESCRIPTION], [VENUE_URL], [VENUE_DETAILS_URL], [VENUE_IMAGE], [VENUE_PHONE], [VENUE_ADDRESS], [VENUE_ADDRESS2], [VENUE_CITY], [VENUE_STATE], [VENUE_COUNTRY], [VENUE_FORMATTED_ADDRESS], [VENUE_ZIP], [VENUE_META_*], [GOOGLE_MAP_URL], [GOOGLE_MAP_LINK], [GOOGLE_MAP_IMAGE], [TICKET_LINE_ITEM_LIST], [TAX_LINE_ITEM_LIST], [ADDITIONAL_LINE_ITEM_LIST], [PRICE_MODIFIER_LINE_ITEM_LIST], [DISPLAY_PDF_URL], [DISPLAY_PDF_BUTTON], [TICKET_LIST]

I’ve tried changing the Question Text so that it doesn’t include any symbols and have now made it “School or Organisation” but it still gives the error.


Tony

  • Support Staff

October 31, 2017 at 5:50 am

Your missing the * from your shortcode.

[PRIMARY_REGISTRANT_ANSWER_*School or Organisation]


iwbnet

October 31, 2017 at 5:59 am

Well if i could put in the forehead slap emoji, I would!
LOL. Working now. Thank you.


Tony

  • Support Staff

October 31, 2017 at 6:02 am

Lol ๐Ÿ™‚

I’m glad it’s working, please do let me know if you run into any more problems.


iwbnet

October 31, 2017 at 6:16 am

Ok I spoke too soon.

It’s allowing me to enter the field [PRIMARY_REGISTRANT_ANSWER_*School or Organisation] into the Invoice & Receipt templates. But i’ve just created a test registration, and the school name does not show up on the Invoice or Receipt. I just get:

Bill To:

Mary Poppins
[PRIMARY_REGISTRANT_ANSWER_*School or Organisation
22 Tea Tree Lane
Fantasia, New South Wales
Australia


Tony

  • Support Staff

October 31, 2017 at 6:21 am

Hmm, can you post a screenshot of the shortcode in Text mode, like this – http://take.ms/QOVkt

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


iwbnet

October 31, 2017 at 6:25 am

Sure, here it is.
https://snag.gy/mZUp4E.jpg


Tony

  • Support Staff

October 31, 2017 at 6:31 am

That’s a different location to the ‘Bill to’ section.

See – http://take.ms/LMYPC


iwbnet

October 31, 2017 at 6:38 am

I want it in both


iwbnet

October 31, 2017 at 6:39 am

Opps hang on no i don’t.


iwbnet

October 31, 2017 at 6:40 am

Sorry for the bother, I see where I went wrong and have fixed it now. ๐Ÿ™‚

Viewing 12 reply threads

The support post ‘Shortcode for New Questions in Registration Form’ 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