'#description'=>t('Replace HTML5 validation with Clientside Validation on forms that have Clientside Validation enabled'),
);
}
...
...
@@ -140,7 +139,7 @@ function clientside_validation_settings_form($form, $form_state, $cvsid = NULL,
),
'#title'=>t('Validate fields on submit'),
'#description'=>t('"No" disables onsubmit validation, allowing the user to submit whatever he wants, while still validating on keyup/blur/click events (if not specified otherwise).'),
@@ -151,7 +150,7 @@ function clientside_validation_settings_form($form, $form_state, $cvsid = NULL,
),
'#title'=>t('Validate fields on blur'),
'#description'=>t('Validate elements (except checkboxes/radio buttons) on blur. <strong>If nothing is entered, all rules are skipped, except when the field was already marked as invalid.</strong>'),
@@ -162,7 +161,7 @@ function clientside_validation_settings_form($form, $form_state, $cvsid = NULL,
),
'#title'=>t('Always validate fields on blur'),
'#description'=>t('Validate elements (except checkboxes/radio buttons) on blur, <strong>even nothing is entered before or if the fields hasn\'t been marked as invalid before.</strong>'),
@@ -178,7 +177,7 @@ function clientside_validation_settings_form($form, $form_state, $cvsid = NULL,
),
'#title'=>t('Validate fields on key up'),
'#description'=>t('Validate elements on keyup. <strong>As long as the field is not marked as invalid, nothing happens</strong>. Otherwise, all rules are checked on each key up event.'),
'#description'=>t('Warning: Showing only the first or last message only works if the error messages are displayed on top of the form. When they are displayed inline this setting has some bugs.'),
);
...
...
@@ -206,14 +205,14 @@ function clientside_validation_settings_form($form, $form_state, $cvsid = NULL,
'#title'=>t('Field name prefix'),
'#description'=>t('The prefix of the field name in the error messages.'),
'#type'=>'textfield',
'#default_value'=>variable_get('prefix',''),
'#default_value'=>$settings['error']['prefix'],
);
$form['error']['suffix']=array(
'#title'=>t('Field name suffix'),
'#description'=>t('The suffix of the field name in the error messages.'),
'#type'=>'textfield',
'#default_value'=>variable_get('suffix',''),
'#default_value'=>$settings['error']['suffix'],
);
$form['error']['example_image']=array(
...
...
@@ -227,14 +226,14 @@ function clientside_validation_settings_form($form, $form_state, $cvsid = NULL,
'#title'=>t('Scroll to error message'),
'#description'=>t('If checked, the page will automatically scroll to the error messages when validation fails.'),