Jump to:

3393 Posts in 976 Topics by 852 members

Template Questions

SilverStripe Forums » Template Questions » SOLVED Required field - js message - change color

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

Page: 1
Go to End
Author Topic: 734 Views
  • dimtank
    Avatar
    Community Member
    2 Posts

    SOLVED Required field - js message - change color Link to this post

    Hello,

    I am using SS 2.3.7 on cms/contact page
    I am trying to change the color of the message wich appears when you click on the email field.

    The message is "Please fill out "Email Address*", it is required."

    I found something in cms\mysite\code\validator.js line 150
    var errorMessage = ss.i18n.sprintf(ss.i18n._t('VALIDATOR.FIELDREQUIRED', 'Please fill out "%s", it is required.'), fieldLabel);

    Is there a way to change the color of this message ?

    Thanks a lot !

  • Ryan M.
    Avatar
    Community Member
    309 Posts

    Re: SOLVED Required field - js message - change color Link to this post

    Edit the CMS css file or override it.
    You'll need to locate the selector though.

  • vegetav
    Avatar
    Community Member
    23 Posts

    Re: SOLVED Required field - js message - change color Link to this post

    .required { color: #E40000; }

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