Are there any JavaScript errors? If so, try using FireFox's JS debugger. I have
found CFFORM's JS sometimes will conflict with other JS that might be on the
page. You could also just use a select tag and write your own JS to validate or
use qForms as previously suggested.
Stan Winchester
You can do server side validation and it will catch the errors, BUT it does NOT
pop up a javascript box like the inline required=yes feature does. What it
does is loads a blank page with a plain gray box and it has your message.
What you have to do is to put in your select field, then add
, 2005 2:56 PM
To: CF-Talk
Subject: CFSELECT (I hate CFFORM)
You can do server side validation and it will catch the errors, BUT it does
NOT pop up a javascript box like the inline required=yes feature does.
What it does is loads a blank page with a plain gray box and it has your
message.
What you
I've run into the same thing before. Incredibly aggravating!
I just mark one as selected, then you know they can't get past it.
Will
www.codefusiongear.com
~|
Logware (www.logware.us): a new and convenient web-based time
I just found this posted by a user in the LiveDocs and it works great!
What you need to do is to edit the javascript that the CF server writes so that
it also checks for a null value (your value= part of your first option item).
This is a simple code change in a javascript template file. Edit
I believe if you use format=xml you can fix the default behavior for
required select boxes by editing the XSL sheet. Although admittedly if
you're talking about an older form which already has an html table (or
other html markup) built around the input elements, then you have to
rewrite the whole
- Original Message -
From: Bud [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 5:16 PM
Subject: Re: CFSELECT (I hate CFFORM)
On 3/26/03, Bryan Stevenson penned:
I'm using IE and I know IE would consider the text Select one as the
selection when the option
, 2003 9:27 am
Subject: Re: CFSELECT (I hate CFFORM)
Actually Bud it doesn't work with no value attribute either (I
tried it
every way possible). Anyways, thanks for the responseI rolled
a custom
solution to get around CFSELECT and it's dark dark evilness ;-)
Bryan Stevenson B.Comm.
VP
-
Vancouver Island ColdFusion Users Group
Founder Director
www.cfug-vancouverisland.com
- Original Message -
From: [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 9:00 AM
Subject: Re: CFSELECT (I hate CFFORM
Hi All,
I NEVER use CFFORM, but I've taken over a site that does *sigh* ;-)
Any idea why this code would NOT throw a typical CFFORM JavaScript alert
when the user does not select anything?
cfselect name=sNewCountry message=Select a country required=Yes
option value=Select one
cfloop
I NEVER use CFFORM, but I've taken over a site that does
*sigh* ;-)
Any idea why this code would NOT throw a typical CFFORM
JavaScript alert when the user does not select anything?
cfselect name=sNewCountry message=Select a country
required=Yes
option value=Select one
cfloop
On 3/26/03, Bryan Stevenson penned:
I'm using IE and I know IE would consider the text Select one as the
selection when the option value is left blank as I'm doing. I tried
removing the Select one text and it still didn't catch the lack of
selection!!
It shouldn't. If it does it's broke. It
12 matches
Mail list logo