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

No validation on Newsletter Subscription Page


Reply


3 Posts   1570 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, 137 Posts

28 December 2009 at 8:57am

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