Hello,
I would like to request the following feature:
When the user input doesn't match the validation rule, give a warning and the option to continue anyway (like: Your input doesn't seem to be correct. Do you wish to continue?)
Sometimes it's not that possible to make a validation rule thats always 100% correct. In those cases the requested feature would be usefull.
Thanks,
Mike.
Comments
Comment #1
g089h515r806 commentedin Drupal warning message could not prevent form submit.
Comment #2
sportel commentedAn option would be to first show the warning, just like normal when the input doesn't match the validation, but also generate a button that say's "Continue", which disables (bypasses) the validation and saves the form.
I'm not sure this is possible because I'm not a php-dev.
Thanks,
Mike.
Comment #3
mccrodp commentedWell, this is an old issue. However, I've been looking for something like this today.
I was surprised that I could not find a module that provides warnings (only) via jQuery based on field values. i.e. - allowing form submission and node creation. It is a good case for a field_warning module on drupal.org if it does not exist yet.
Comment #4
mccrodp commentedIf a client side warning is all that is desired, it should be taken care of by clientside_validation module integration as proposed here: #2664510: Provide method to add warning only, allowing form submission. What was originally described in this issue sounds like server-side, so maybe field_validation could be the one to provide this "Show Warning" option as described in the issue linked in this comment...