Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

UserForms - creating a good looking email template


Go to End


2 Posts   1997 Views

Avatar
MarioSommereder

Community Member, 107 Posts

15 June 2009 at 1:47am

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

Avatar
Willr

Forum Moderator, 5523 Posts

15 June 2009 at 5:32pm

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?