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

No validation on Newsletter Subscription Page


Go to End


3 Posts   2133 Views

Avatar
joninjas

Community Member, 32 Posts

5 December 2009 at 12:07pm

Hello!

I have newsletter-trunk-r94397 and SilverStripe-v2.3.3 installed. There is no validation enabled for the Newsletter Subscription Page. Could enyone help me to enable that feature?

I can send in the forms whatever I want, it's not checking for @ in the mailaddress for example...

Thanks
Jonas

Avatar
joninjas

Community Member, 32 Posts

6 December 2009 at 2:39pm

Solution:

For a working Newsletter subscription validation change the lines 140+141 in SubscriptionPage.php (version: newsletter-trunk-r94397) to:

Requirements::javascript("http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js");
Requirements::javascript("http://ajax.microsoft.com/ajax/jquery.validate/1.5.5/jquery.validate.min.js");

cheers
Jonas

Avatar
Nobrainer Web

Community Member, 138 Posts

28 December 2009 at 8:57am

Thank you for this Jonas, one error down, now for the unsubscribe error.