PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Conditionals in email template?

  1. gregfindley
    Member

    I have a form with the following checkboxes:
    - Arrange a free consultation (Value: Consultation Requested)
    - Call me back - I have a quick question (Value: Call Back Requested)
    - I would like further information (Value: Further Information Requested)
    - We will send you promotions, news and offers. Tick this box if you do not wish to receive this (Value: Optout)

    And I need them to output in the email like so:
    Consultation Requested: Yes
    Consultation Requested: No

    Is there any way of using a conditional like:
    {Arrange a free consultation:16.1}: <?php if checked : echo 'yes'; else : echo 'no'; endif; ?>

    Or do you have any ideas how I could go about having it output the way it needs to be?

    Thanks,

    Posted 12 years ago on Wednesday September 7, 2011 | Permalink
  2. Currently the notification emails do not support conditional statements. It is a feature we would like to add either as a core feature or via an advanced notification add-on.

    Posted 12 years ago on Wednesday September 7, 2011 | Permalink