We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22969
    • 158 Posts
    Sorry me again, once I show you finished form your see why I has so many questions, anyway...

    Is there anyway in the email template to only display a field heading if that non mandatory field was filled in on the form, if not for it not to show?

    For example in the email itself

    "Telephone Number: 02235 223355"

    But if no telephone number was entered on the form that whole row to not appear, otherwise I have "Telephone Number: "

    Also makes the email look long with loads headings with no results next to them, so if they wish to print will look messy

    Thank you!

    Brett
      • 22969
      • 158 Posts
      anyone got an ideas on this?

      Thank you.

      Brett
        • 31946
        • 116 Posts
        Try to use an Output-filter in your template, something like this:

        [[+phone:notempty=`Telephone Number: [[+phone]]`]]
        


          • 22969
          • 158 Posts
          Perfect!

          But can I put html in there aswell for instance:

          [[+phone:notempty=`<p>Telephone Number: [[+phone]]</p>`]]
          
            • 31946
            • 116 Posts
            Yes this should work.
            Of course you must send your emails in HTML-format. I used also HTML Tags in my E-Mail Template (Chunk).
            Worked without problems! smiley

            Cheers