Hi, You can use freemarker in email templates, there is an example in the mail module.
I suspect just "someField" might not be the right way to access the field, and that is the problem, but I am not familiar with the form module. Regards from Vienna, Richard > -----Ursprüngliche Nachricht----- > Von: [email protected] [mailto:user-list-owner@magnolia- > cms.com] Im Auftrag von Arnoud ten Hoedt (via Magnolia Forums) > Gesendet: Mittwoch, 30. April 2014 08:58 > An: Magnolia User List > Betreff: [magnolia-user] If/Else in form module e-mail freemarker > > Hi there, > > Can you use freemarker #if #else syntax when using a text email in a form > module form? > > We tried > [#if someField=="value"] > Details: > ${someOtherField1} > ${someOtherField2} > [/#if] > as well as > <#if someField=="value"> > Details: > ${someOtherField1} > ${someOtherField2} > </#if> > > However the whole block just seems to drop from the final e-mail. > > What syntax can I use? (if any?) > > I couldn't find any documentation in the wiki other than it mentioning that > you can use freemarker, which I think I do. > > Rgds, > > Arnoud > > -- > Context is everything: http://forum.magnolia- > cms.com/forum/thread.html?threadId=d1e9c4b5-0300-42ee-9504- > ebab7d15dc51 > > > ---------------------------------------------------------------- > For list details, see http://www.magnolia-cms.com/community/mailing- > lists.html > Alternatively, use our forums: http://forum.magnolia-cms.com/ > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
