in my invoice I am using a Shortcode [PRIMARY_REGISTRANT_ANSWER_*VAT] which works as is should and outputs e.g. “ATU6666506”
What I would need is a way to add additional text/html in front. But only if the
Field contains Data. e.g. “VAT: ATU6666506” and otherwise output nothing.
Best Michael
P.S. how can I adjust the size of the PDF from letter to A4 ?
Currently EE does not support conditionals within the shortcodes so that if the answer is empty nothing is output. For that you would need to create your own version of the shortcode and add the condition to that, then call your custom shortcode in place of the above.
I have previously posted details on adding custom shortcodes to the messages system here:
P.S. how can I adjust the size of the PDF from letter to A4 ?
Its not currently possible to change the size of the PDF however you should still be able to print to A4.
Viewing 1 reply thread
The support post ‘Message Shortcodes and Conditionals’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.