Hey Bob,
Not sure about the inconsistent behavoir, but I do know something that you
could try: you could call jQuery’s preventDefault() on the submit action.
http://api.jquery.com/event.preventDefault/
Of course, that you mean you had to submit the form explicitly in that
javasript…HTH
—Chris
On Sep 23, 2016 at 2:55 PM Bob Patin wrote:
OK, here’s a new one; I’ve used JQuery Validate a long time, works great…
Today I put it into a new site, and here’s what happens:
I took an existing form from an old version of the site, and copied it (and
the related JQuery) to the new page;
When I click SUBMIT, my JQuery script runs and the form is submitted, even if
I haven’t filled in all the fields.
To make it stranger, Validate does mark the empty fields, but it’s letting
the submission continue.
I looked to see if my old site had "return false" at the end of the VALIDATE
script, but it doesn’t (doesn’t exist in their demo files either); I see that
it does run Validate, but it’s almost as though it’s running the submission
*first* and then running VALIDATE…
Anyone have any ideas? My error console shows no errors.
Thanks,
Bob Patin
Longterm Solutions
bob@xxxxxxxxxxxxxxxxxxxxx(mailto:bob@xxxxxxxxxxxxxxxxxxxxx)
615-333-6858
FileMaker 9, 10, 11, 12&13 Certified Developer
http://www.longtermsolutions.com
-
iChat:bobpatin@xxxxxx(mailto:bobpatin@xxxxxx)
Twitter: bobpatin
—
FileMaker Consulting
FileMaker Hosting for all versions of FileMaker
PHP • Full email services • Free DNS hosting • Colocation • Consulting