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.
The FAPI validation project provides advanced rules for FAPI elements. It would be fantastic if I could define advanced rules with FAPI validation, have clientside_validation add validate.js implementations of those rules, and get front and back end validation that behaves the same with and without javascript.
Comments
Comment #1
attiks CreditAttribution: attiks commentedThat was our idea as well, I will look into this
Comment #2
attiks CreditAttribution: attiks commentedJelle started on this (http://drupalcode.org/project/clientside_validation.git/shortlog/refs/he...), most of it is working, but the regular expression rules will be a problem since PCRE and ECMA aren't compatible, is it possible to use POSIX on the server side? See http://www.regular-expressions.info/refflavors.html for the comparison
Comment #3
Jelle_SFAPI integration was added to the dev branch, testing didn't reveal any bugs so far, if someone finds any, feel free to report them.
Clientside validation was split up into some submodules (currently only in the dev branch):
* clientside_validation_form (for regular form support and cck for Drupal 6)
* clientside_validation_webform (for webform support)
* clientside_validation_fapi (for fapi support)
* clientside_validation (global functionality)
Comment #4
fearlsgroove CreditAttribution: fearlsgroove commentedThanks for your work on this! I plan to review in the next day or three.
Comment #5
Jelle_SFeature added in 6.x-1.16 and 7.x-1.16
Comment #7
doublejosh CreditAttribution: doublejosh commentedServer-side validation messages are immediately hidden when they are the only message, and both client-side validation is on as well as fapi_validation.
Client-side seems to clear the messages on page load.