Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295826

Native browser form validation does not fire when submit buttons use #ajax

$
0
0

Problem/Motivation

Modern browsers perform client-side validation for certain input fields. The easy example is for an input marked required.
This is only triggered when the browser detects a type="submit" being clicked.

When you attach an #ajax handler to a submit button, this seems to prevent that from correctly firing.

This is not a real validation problem, as we perform our own server-side validation. But it does negatively affect the UX.

Proposed resolution

TBD

Remaining tasks

Find a solution

User interface changes

Native validation will work for all submit buttons, not just non-Ajax ones

API changes

TBD

Data model changes

N/A


Viewing all articles
Browse latest Browse all 295826

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>