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

Using {entry_data} but only with desired fields


  1. philipwareham
    Member

    Hi,

    I want to use the html email template that is automatically generated from helper-functions.php when your email responders contain {entry_data} as the subject, but instead of simply displaying all of the data from the original form (in this case elements 1 to 11), I want to use just element 1, 3 and 11 for receipts to users and elements 1 to 10 for emails to me.

    If you use template variables in the form subject instead of {entry_data} it does not use the html formatting from helper-functions.php.

    Thanks,
    Phil

    Posted 15 years ago #
  2. AMurray
    Pro Member

    Not sure if I've got the point of your question.

    Is it asking how to use the custom variables or how to duplicate the style of the default HTML template?

    I think you can use (some) HTML markup in the custom email messages, but bear in mind not all email programs support HTML format messages; many display as text (ASCII) only.

    To the other half of the question, I'm assuming you do know how to use the custom variables and fields?

    If not, see the live demo on appnitro.com (such as this: http://www.appnitro.com/demo/template_variables.php?id=7) for how it is done.

    To use individual elements, you type in {element_1}, {element_2} etc in the actual message - the variable name within the braces is replaced with the actual data because the script knows where to pull the data from to send as it is sent at the same time it's submitted to the database.

    There's a checkbox for "Send in simple text format" which suggests you can actually use HTML elements like <table>and <div> etc, to lay out the template message - you'll need to know a bit of HTML as it doesn't show a real-time view of the template.

    Perhaps a WYSIWYG type editor can be implemented for editing the email templates.....

    Put it on the "wish list"!.

    Posted 15 years ago #
  3. AMurray
    Pro Member

    To clarify a point:

    "There's a checkbox for "Send in simple text format" which suggests you can actually use HTML elements like <table>and <div> etc, to lay out the template message - you'll need to know a bit of HTML as it doesn't show a real-time view of the template."

    What I mean by this is that if you have to check the option for Simple Text, the default option seems to be HTML format.

    Posted 15 years ago #

RSS feed for this topic

Reply