Do not launch raw js alert jqueryValidation fails #14854
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
Jquery validation is not enabled much on front end forms but if you DO enable it you get very nasty pure js alert messages. This removes those - after discussion removal makes sense at this stage. You still see the red messages and it's still possible for extensions to capture & render the messages with some jquery foo.
To enable validation on contribution pages in an extension assign
$form->assign('isJsValidate', TRUE);
- it will kick in if you try to submit with an invalid emailBefore
Cannot enable Validate without horrendous js alerts
After
Can....
Technical Details
This isn't my ultimate preference - per long discussion here
eileenmcnaughton/nz.co.fuzion.omnipaymultiprocessor#128
I think being able to output a summary of messages near, or in place of, the paypal
checkout button makes more sense - open to better options @colemanw
Comments
@colemanw this is what I've been kinda back-ground nagging you about - I had a go - much more detail on the link above