D
D
D_mi_try2016-12-21 10:16:59
SharePoint
D_mi_try, 2016-12-21 10:16:59

How to make alerts in the red validator?

Good afternoon. There are two forms in SharePoint "form#1" and "form#2".
In the first form, when checking values, the messages from the validator are red.
7034f503dcc243fca685f69cb948020f.PNG
In the source code editor, they look like this:

<span class="ms-formvalidation"><span role="alert">Необходимо задать значение для этого обязательного поля.</span><br></span><span role="alert" class="ms-formvalidation">Необходимо задать значение для этого обязательного поля.</span>

In the second form, when checking values, the messages from the validator are black.
6d40d728bbc5434db3104362f13a4202.PNG
In the source code editor, they look like this:
<span id="ctl00_ctl30_g_31c3954f_f533_46ab_be42_65b5d521e2f3_ff31_ctl00_ctl00_DateTimeField_ctl00" style="display: inline;">Необходимо задать значение для этого обязательного поля.</span>

How to make alerts red??? Google didn't help

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
D_mi_try, 2017-01-09
@D_mi_try

The MSDN forum suggested the following solution:

<style type="text/css">
#ctl00_ctl30_g_31c3954f_f533_46ab_be42_65b5d521e2f3_ff31_ctl00_ctl00_DateTimeField_ctl00{
  color:#FF0000;
}
</style>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question