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

Customizing the Userforms Email


Go to End


3 Posts   988 Views

Avatar
juneallison

Community Member, 110 Posts

23 August 2011 at 12:54pm

Hi,

I just had a couple questions about customizing the userforms email.

1. If a user don't fill in a field, is it possible to leave that label/field out of the email?
2. I'm getting something like "EditableLiteralField25" in the email. I think these are the text/html fields I have between form fields. Is there a way to prevent these from showing in the email?

Any help would be great. Thanks!

Avatar
Willr

Forum Moderator, 5523 Posts

23 August 2011 at 8:02pm

If you want to hide EditableLiteralFields (which I think they should be) simply override showInReports() in /userforms/code/editor/EditableLiteralFields.php like

function showInReports() {
return false;
}

I've created a feature request to track this - http://open.silverstripe.org/ticket/6704. Would be nice to have the option in the module.

Avatar
juneallison

Community Member, 110 Posts

24 August 2011 at 12:09am

thanks Willr!