I know it is possible to add custom field data to receipts and invoices using [PRIMARY_REGISTRANT_ANSWER_*My Question] but is it possible to show text before the field value if the field has a value, but not show text if the field is left empty? Something like this php: <?php if ( $my_question ) : ?>
My question: <?= $my_question; ?>
<?php endif; ?>
Thanks
Currently, we don’t have any shortcodes that will conditionally show based on the value. However, all of the shortcodes within EE are filtered so its possible to add your own for this if needed.
Thanks for the reply Tony. I’m glad there’s a way to do it, but at first glance, the coding is a little beyond me. But good to know it’s possible, if the client really wants it. Thanks
Awesome, If you need anything, feel free to send us message again.
thanks
Viewing 4 reply threads
The support post ‘Conditional text if field has value’ 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.