Thanks for the latest push, we are using version 7.x-1.39

Form submit does not work when ajax validate is turned off on a custom form.

We have a set of predefined actions written on form submit. This works well when we have ajax validate turned-on on our custom form and not other wise.

Is there a way to turn off ajax validations at the field level, as our form has ajax elements that need no validations and some other ajax validation that need messages.

Comments

attiks’s picture

You can use '#exclude_cv' => TRUE on the element, that should disable all clientside validation

Shyamala’s picture

We need client side validation but need to disable only ajax validation for this field. Is that possible?

We figure that if we comment the below code in Drupal.behaviors.ZZZClientsideValidation:

ret = ret && Drupal.myClientsideValidation.validators[id].form();
if (!ret) {
   Drupal.ajax[ajax_el].ajaxing = false;
}

for options['url'] == '/system/ajax/field_property_location/und/0 which is our Location field, our form works as desired, but we end up with a Captcha Server side error:

Error message:
CAPTCHA session reuse attack detected.
The answer you entered for the CAPTCHA was not correct.