Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Tracking other issues about validation
#742344: Allow forms to set custom validation error messages on required fields needs backport for d7#216064: Entity form "Delete" button triggers server-side + HTML5 form validation; change "Delete" button to a link add .cancel class to all buttons with 'empty' '#limit_validation_errors'see #2056219: General problem with drupal AJAX requests prevented by clientside validation- #941620: #skip_validation_errors : complement of #limit_validation_errors #limit_validation_errors and #skip_validation_errors
- #185852: Patch that adds the ability to set #executes_validate_callback property add .cancel class to all buttons with #executes_validate_callback == FALSE
- #1244862: Add #skip_validation property to 'Delete', 'Cancel' buttons
- #179126: if an error exists in the form set focus to first element which has an error
- #1173730: Add #reserved_values property to Form API elements to disallow reserved values
- #766146: Support multiple forms with same $form_id on the same page
- #1210700: Boolean required fields are not actually required
- #127262: Proposed hook_message_alter
- #675348: META: Support HTML5 form input elements / Implement Form API support for new HTML5 elements
Support: #1174766: Support the #pattern FAPI property for native HTML5 pattern attributeSupport: #1174640: Add new HTML5 FAPI element: number- Support: #811542: Regression: Required radios throw illegal choice error when none selected
Support: #1174630: Add new HTML5 FAPI element: urlSupport: #1174620: Add new HTML5 FAPI element: emailSupport: #1174646: Add new HTML5 FAPI element: rangeSupport: #1174634: Add new HTML5 FAPI element: telephoneSupport: #1174628: Add new HTML5 FAPI element: searchSupport HTML5 color element- Overview of html5 Drupal core issues/feature requests: Implement Form API support for new HTML5 elements
Feel free to add others as well
- Multivalue Settings: #1309504: Integrate in clientside validation
- Elements: #1309508: Integrate in clientside validation
Comments
Comment #1
attiks CreditAttribution: attiks commentedbetter title ;p
Comment #1.0
attiks CreditAttribution: attiks commentedupdating list
Comment #2
Jelle_SAlready added support for #742344: Allow forms to set custom validation error messages on required fields on dev branch
Comment #2.0
Jelle_Sadded some more
Comment #3
Jelle_SSee also: Implement Form API support for new HTML5 elements for a clear overview of html5 Drupal core issues/feature requests
Comment #4
Jelle_SAdded support for number HTML5 element on the 7.x-1.x dev branch + setting to replace HTML5 validation with clientside validation. See #1174640: Add new HTML5 FAPI element: number for HTML5 number element patch.
Comment #5
Jelle_SNote on previous comment:
the step attribute is not yet supported!
e.g:
#min => 0.1
#max => 2.1
#step => 1
Clientside Validation wil let ALL values between 0.1 and 2.1 pass and not only [0.1, 1.1, 2.1]. This means we still need to figure this out somehow.
Comment #5.0
Jelle_SUpdated issue summary.
Comment #5.1
attiks CreditAttribution: attiks commentedupdated
Comment #6
Jelle_SHTML5 number is now completely supported in the latest dev. HTML5 validation has also been moved to a separate sub-module
Comment #6.0
Jelle_Supdate
Comment #6.1
Jelle_SUpdated issue summary.
Comment #6.2
Jelle_SUpdated issue summary.
Comment #6.3
Jelle_SUpdated issue summary.
Comment #6.4
Jelle_SUpdated issue summary.
Comment #6.5
Jelle_SUpdated issue summary.
Comment #6.6
Jelle_SUpdated issue summary.
Comment #6.7
Jelle_SUpdated issue summary.
Comment #6.8
Jelle_SUpdated issue summary.
Comment #6.9
Jelle_SUpdated issue summary.
Comment #6.10
Jelle_SUpdated issue summary.
Comment #6.11
Jelle_SUpdated issue summary.
Comment #7
Jelle_SAdded HTML5 url support, see #1174630: Add new HTML5 FAPI element: url for the HTML5 url element patch for Drupal core.
Comment #8
Jelle_SAdded HTML5 email support, see #1174620: Add new HTML5 FAPI element: email for the HTML5 email element patch for Drupal core.
Comment #9
Jelle_SAdded HTML5 range support, see #1174646: Add new HTML5 FAPI element: range for the HTML5 range element patch for Drupal core.
Comment #9.0
Jelle_SUpdated issue summary.
Comment #9.1
Jelle_SUpdated issue summary.
Comment #9.2
Jelle_SUpdated issue summary.
Comment #10
Jelle_SAdded HTML5 pattern attribute support, see #1174766: Support the #pattern FAPI property for native HTML5 pattern attribute for the HTML5 pattern attribute patch for Drupal core.
Comment #11
Jelle_SAdded HML5 search and telephone support (these elements don't need extra validation, besides the already supported required, pattern, etc), see #1174634: Add new HTML5 FAPI element: telephone and #1174628: Add new HTML5 FAPI element: search for the HTML5 search and telephone element patch for Drupal core.
Comment #12
Jelle_SAdded HTML5 color support. Right now (Aug 10, 2011) there is no patch yet for this element for Drupal core.
Comment #12.0
Jelle_SUpdated issue summary.
Comment #13
Jelle_Supdated tags
Comment #13.0
Jelle_SUpdated issue summary.
Comment #14
webankit CreditAttribution: webankit commentedI am using elements module.. is it supported
I tried to add a phone field but on entering alphabets nothing happened.
Do i need to add any validation also via some other way like form validation module.
Plz guide
Comment #15
attiks CreditAttribution: attiks commented#14: it isn't supported for the moment, I'll try to have a look asap.
Comment #15.0
attiks CreditAttribution: attiks commentedadded
Comment #15.1
attiks CreditAttribution: attiks commentedUpdated issue summary.
Comment #15.2
Jelle_SUpdated issue summary.
Comment #16
apaderno