Jump to:

10930 Posts in 2613 Topics by 1810 members

All other Modules

SilverStripe Forums » All other Modules » No validation on Newsletter Subscription Page

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 1515 Views
  • joninjas
    Avatar
    Community Member
    32 Posts

    No validation on Newsletter Subscription Page Link to this post

    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

  • joninjas
    Avatar
    Community Member
    32 Posts

    Re: No validation on Newsletter Subscription Page Link to this post

    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

  • Nobrainer Web
    Avatar
    Community Member
    134 Posts

    Re: No validation on Newsletter Subscription Page Link to this post

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

    1515 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.