Commit f95e80cd authored by Jelle's avatar Jelle
Browse files

Issue #1969464 by ayalas: Added ability to disable clientside validation for a form element.

parent 9ba67009
......@@ -48,6 +48,10 @@ function clientside_validation_regular($form_id, $element, &$js_rules, $form_sta
if (isset($field_info['exclude_cv']) && $field_info['exclude_cv'] == '1') {
$skipvalidation = TRUE;
}
elseif (isset($element['#exclude_cv']) && $element['#exclude_cv']) {
//skip validation if defined so by form element
$skipvalidation = TRUE;
}
if (isset($element['#name']) && !$skipvalidation) {
$el_name = $element['#name'];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment