Jump to:

10986 Posts in 2724 Topics by 1817 members

All other Modules

SilverStripe Forums » All other Modules » UserForms - creating a good looking email template

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1525 Views
  • theGermaniac
    Avatar
    Community Member
    82 Posts

    UserForms - creating a good looking email template Link to this post

    Hi,

    I installed UserForms and it works pretty well.

    Right now, I'm editing the file SubmittedFormEmail.ss and I need to know, what type the Field is, the code currently pastes. I want to handle headings different to the rest, like:

    <% control Fields %>
    <% if Fields.Heading %>
    do something
    <% else %>
    do something else
    <% end_if %>
    <% end_control %>

    I was looking in the documentation, the tutorial and the forum, but I didn't find anything.

    Thanks in advance.

    Best, Mario

  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: UserForms - creating a good looking email template Link to this post

    I would have thought it doesn't output literal text fields such as headings, content boxes and so it only outputed fields which had submitted values. The reason for this is it doesn't print out from the submitted fields rather then values saved from the database.

    Are you using 0.2 release of userforms?

    1525 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.