This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

custom template variable


  1. bjames
    Member

    Hello,

    I'd like to be able to format a custom email based on what is entered into particular fields. The included template variables allow me to display items individually, but I can't test whether a value is entered in a field prior to formatting. So is it possible to add conditional statements withing the email itself...something like this:

    if ({template_variable} is true){ echo {template_variable}}

    If this isn't possible, could I create a custom template variable (ie: {custom_variable} that is called within the email, and then I handle it/format it separately in one of the php files?

    Posted 15 years ago #
  2. bjames
    Member

    I ended up adding some hacks to helper-functions.php If there's a cleaner way, I'd be interested in knowing what that is. :-)

    Posted 15 years ago #

RSS feed for this topic

Reply