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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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   1970 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.