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 ?'s Email not triggering, Zero as valid entry, Custom templates


Go to End


4 Posts   1664 Views

Avatar
cmc

Community Member, 33 Posts

10 December 2014 at 3:18pm

I'm using SS 3.1.6 and the Userforms module. I'm running into a few problems:

1) If two e-mails are set up in the Configuration tab, one sent to an address entered in the CMS, another sent to the E-mail address the site visitor enters in the form, only the first is sent.

2) I need to allow '0' as a valid entry in a required field. I've tried using an Integer field, but Integer Field does not allow a minimum value of '0'. I've also tried a text field. Validation for a text field also fails if the user enters '0'. 2b) If a required field is blank the error message is styled correctly. If a '0' is entered the error message is not wrapped as the first error message and doesn't pick up CSS.

3) I've tried placing custom templates in themes/mytheme/templates/Email and themes/mytheme/templates/email. Neither seems to work.

TIA,
Cathy

Avatar
cmc

Community Member, 33 Posts

11 December 2014 at 6:47am

Solved #3 after testing with simpler change. Lowercase works -

themes/mytheme/templates/email

Avatar
cmc

Community Member, 33 Posts

18 December 2014 at 2:45pm

Re: #1) After much trial and error it seems to be a requirement that if one of the e-mails is sent to an e-mail field on the form, it must be the first in the list of configured recipients.

Avatar
Terry Apodaca

Community Member, 112 Posts

29 October 2015 at 4:03pm

Did you ever figure out the '0' being a valid entry for the numeric field? I need this now too.