Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
drupal.org
clientside_validation
Commits
f95e80cd
Commit
f95e80cd
authored
Jul 04, 2013
by
Jelle
Browse files
Issue #1969464 by ayalas: Added ability to disable clientside validation for a form element.
parent
9ba67009
Changes
1
Hide whitespace changes
Inline
Side-by-side
clientside_validation_form/clientside_validation_form.module
View file @
f95e80cd
...
...
@@ -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'
];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment