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.

Template Questions

SOLVED Required field - js message - change color


Reply

3 Posts   879 Views

Avatar
dimtank

17 September 2011 at 11:16am Community Member, 2 Posts

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 !

Avatar
Ryan M.

17 September 2011 at 2:43pm Community Member, 309 Posts

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

Avatar
vegetav

2 March 2012 at 8:53am Community Member, 23 Posts

.required { color: #E40000; }