For the moment we have no sound way to detect 'Delete', 'Cancel' buttons in clientside_validation, so we are using code like if (isset($form['buttons']['delete'])) {
to detect the presence of such buttons, so we can add a 'cancel' class so validation doesn't happen.
The solution proposed in #216064: Entity form "Delete" button triggers server-side + HTML5 form validation; change "Delete" button to a link isn't sufficient, since multiple buttons can have '#limit_validation_errors' set (http://api.drupal.org/api/drupal/developer--topics--forms_api_reference....), we tried looking at '#limit_validation_errors' => array(), but most of the buttons will still have some value defined.
The solution in #941620: #skip_validation_errors : complement of #limit_validation_errors isn't going the solve this either for us, multiple buttons can have '#skip_validation_errors'
Comments
Comment #1
attiks CreditAttribution: attiks commentedsimilar to #185852: Patch that adds the ability to set #executes_validate_callback property
Comment #14
smustgrave CreditAttribution: smustgrave at Mobomo commentedSeems the issue from #1 has least have some movement. Closing as outdated as there hasn't been movement in 12 years. If still a valid request please reopen updating the issue summary with how it applies to D10
Thanks!