L
L
Leopandro2016-04-26 11:36:16
Yii
Leopandro, 2016-04-26 11:36:16

How to remove color during input validation?

Just not editing in styles, is there any attribute that disables highlighting on successful validation in the form?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Evgeny Bukharev, 2016-04-26
@evgenybuckharev

If memory serves, then when initializing ActiveForm, there is an opportunity in the parameters to specify a class for both successful and not successful fields. Accordingly, these are successCssClass and errorCssClass in the clientOptions array. If we are talking about the first version of the framework, of course)

M
Maxim Timofeev, 2016-04-26
@webinar

For Yii2:

$form = ActiveForm::begin([
'successCssClass'=>' ',
'requiredCssClass' => ' ',
'errorCssClass' => ' '
]);

Details about ActiveForm and its settings: www.yiiframework.com/doc-2.0/yii-widgets-activefor...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question