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.

All other Modules /

Discuss all other Modules here.

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

Customizing the Userforms Email


Reply


3 Posts   470 Views

Avatar
juneallison

Community Member, 108 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, 5513 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, 108 Posts

24 August 2011 at 12:09am

thanks Willr!