confirmation email

kraadde 16 Jun, 2025

Is it possible use conditional logic inside the email to users, like this or is it a better way to achieve the same results:

<table>
<tr><td>Name:</td><td>{data:name}</td></tr>
<tr><td>Vorname:</td><td>{data:vorname}</td></tr>
<tr><td>Hotelzimmer:</td><td>{data:htl_zi}</td></tr>

{if {data:veranstaltungsart} == '4TR'}
<tr><td>Annullationsversicherung:</td><td>{data:anull_vers}</td></tr>
<tr><td>Reisezwischenfallversicherung:</td><td>{data:reisezwf_vers}</td></tr>
<tr><td>Sitzreservation vorne:</td><td>{data:platzres_car}</td></tr>
<tr><td>Namensschild benötigt:</td><td>{data:namensschild}</td></tr>
{/if}

</table>
Max_admin 17 Jun, 2025
Answer

No, there are no if conditions tags, you will need to place the conditional code inside Output Buffer action, and call it inside the email body using {var:output_buffer_name}

The output buffer itself should be inside Event Switcher to check the conditions

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
kraadde 17 Jun, 2025
1 Likes

Thankt, very useful!

Is this correct?

You need to login to be able to post a reply.