/t5/coldfusion-discussions/form-validation/td-p/754389Feb 12, 2009
Feb 12, 2009
Copy link to clipboard
Copied
I've got a bout 150 page website. I use the cfform tags and
use validations on some of the inputs. Most of the validations work
just fine but on about 4 of the pages, it dont. for ex one of the
forms is just a 2 item comment form where the user adds their name
and a breif comment about a story. both fields are required but the
form will process if I just click submit with no date in either
field
/t5/coldfusion-discussions/form-validation/m-p/754390#M70277Feb 12, 2009
Feb 12, 2009
Copy link to clipboard
Copied
Ok one moer thing I just noticed. besides the form i have
above, I had another form further up the page that was just a
search box with one entry. If I remove that component from my page,
the validation now seems to work. So my problem just changed, I
need both forms on the same page. maybe remove the validation from
the search box.
/t5/coldfusion-discussions/form-validation/m-p/754391#M70278Feb 12, 2009
Feb 12, 2009
Copy link to clipboard
Copied
Craig,
Can you post some sample code for the forms that give you
problems? On the page with two forms (the search and the comment
one), do both forms have a unique ID attribute? They probably do
but wanted to make sure!