Oct 24th, 2012, 11:28 AM
Hello,
When I define a field as textarea field and it is empty, it still shows up in the email template when using this code:
Additionally, it adds two line breaks after the field instead of one in the case of other field types. I solved this now by using simply this code (not sure if that's ok):
I was also trying to use double if-tags in email templates which produced an error. Is there another chance to show a block of information only if a specific condition matches? In my case it should be that the airport_transfer field value should match with "yes":
Many thanks,
Philip
When I define a field as textarea field and it is empty, it still shows up in the email template when using this code:
Code:
{if $ANSWER_accommodation_description}Description: {$ANSWER_accommodation_description}
{/if}
Additionally, it adds two line breaks after the field instead of one in the case of other field types. I solved this now by using simply this code (not sure if that's ok):
Code:
{if $ANSWER_accommodation_description}Description: {$ANSWER_accommodation_description}{/if}
I was also trying to use double if-tags in email templates which produced an error. Is there another chance to show a block of information only if a specific condition matches? In my case it should be that the airport_transfer field value should match with "yes":
Code:
{if $ANSWER_airport_transfer=yes}### TRANSFER ###
{if $ANSWER_transfer_name}Name: {$ANSWER_transfer_name}
{/if}
{if $ANSWER_transfer_phone}Phone: {$ANSWER_transfer_phone}
{/if}
{if $ANSWER_transfer_description}Description: {$ANSWER_transfer_description}
{/if}{/if}
Many thanks,
Philip