Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Newsletter signup 'not email address' error message

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 3033 Views
  • Decisive Flow
    Avatar
    Community Member
    73 Posts

    Newsletter signup 'not email address' error message Link to this post

    If the wrong email address is typed into the email field, the error message displays but It expands the entire page out and breaks it. I know there will be a fix tot his, but all I can see in the code si that its a javascript error so I'm not sure how to style it (http://www.planHQ.com)

  • Simon
    Avatar
    Core Development Team
    27 Posts

    Re: Newsletter signup 'not email address' error message Link to this post

    The javascript validation appends (via dom) an span with the classes "message validation",

    Adding the following CSS selectors will allow you to style them as you wish..

    form .message{

    }

    You can change the styling of particular messages tool;
    other typical form messages are "good" , "bad" , "warning"

    Examples..

    /** Form messages **/
       .message {
          margin: 1em 0;
          padding: 0.5em;
          font-weight: bold;
          border: 1px black solid;
       }
          .message.good {
             background-color: #d3ffab !important;
             border-color: #54ff00;
          }
          .message.warning{
             background-color:#ffc7ca;
          }
          .message.bad {
             background-color:#ff858c;
             border-color:#BC0F01;
          }
          .message.required,
          .message.validation{
             display:block;
             margin-top:5px;
             color:#BC0F01;
             border-color: #BC0F01;
          }
          .message.validation{
             color:#BC0F01;
             border-color: #BC0F01;
          }

  • Decisive Flow
    Avatar
    Community Member
    73 Posts

    Re: Newsletter signup 'not email address' error message Link to this post

    woohoo fixed

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