Support

Home Forums Event Espresso Premium Conditionals in messages

Conditionals in messages

Posted: May 19, 2022 at 2:43 am


dreamimplementation

May 19, 2022 at 2:43 am

Hello,

I have a case where in the Invoice I should display either the company or the person name depending on the input of the customer. Are there any conditional shortcodes now available? As I see, the last question on this topic was in 2016. Thank you!


Joao Victor

  • Support Staff

May 19, 2022 at 6:46 pm

Hi there!

Thanks for contacting our support today.
In this case, you can use the [PRIMARY_REGISTRANT_ANSWER_*] shortcode inside the Invoice template under the Event Espresso > Messages > Invoice – This shortcode will display the field’s value added to the Primary Registrant form, you just need to put the question text after the * like [PRIMARY_REGISTRANT_ANSWER_*QUESTION TEXT].

I have created the Company Name question: https://share.cleanshot.com/KJGXFk
and put this as a shortcode in the Invoice template:https://share.cleanshot.com/aZgmKA

You can decide to remove the First and Last name if you want to leave just the Company name.

Let me know if it works for you!

The support post ‘Conditionals in messages’ 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