> thanks for your replies, although the problem with having an empty element or
> an element saying 'Select one of the following'
> would cause the required="yes" validation not to work as they would still be
> valid options
>
> is there no way to get the required="yes" validation to work on th
as the docs Charlie has posted say, the value must be a space, not an
empty string:
Please select...
now required="yes" should work in your cfselect.
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
On 23/09/2009 03:25, Richard White wrote:
> thanks for both your help, i will continue to w
thanks for both your help, i will continue to work out why this is not working
on my system, if it is working your end that it has to be something to do with
my code!!!
thanks again for your help
>from the docs:
>
>Note: This attribute has no effect if you omit the size attribute or set it
>
Seems like it. Do you have any custom onSubmit stuff in JS that might be
interfering with the CFFORM processing?
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mail
from the docs:
Note: This attribute has no effect if you omit the size attribute or set it
to 1, because the browser always submits the displayed item. You can work
around this issue: format forms by having an initial option tag with value="
" (notice the space character between the quotation mar
thanks Jason, although this doesnt seem to work my end. i copied and pasted the
code into the form...the combo is empty at first which is great, but when i
click on the submit button without selecting anything in the combo it doesnt
show me the message "Please select a Sample Type to continue."
Note the initial empty . Also, note that you only need 1 set of
enclosing tags.
#lookupOptionsArray[i]#
~|
Want to reach the ColdFusion community with something they want? Let
the entire select works looks like this:
#lookupOptionsArray[i]#
i understand that it can be done by other validation means but have lots of
drop down boxes and would much prefer to save on the code by allowing the
required="yes" and corresponding message to handle it
thanks for
Richard,
Let me see your entire CFSELECT statement and we should be able to figure
out how to get the empty First Option to work for you. It is entirely
possible to do what you're trying to do.
~|
Want to reach the ColdF
There are other ways around it. The responses are the correct route for
validation.
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.ho
thanks for your replies, although the problem with having an empty element or
an element saying 'Select one of the following' would cause the required="yes"
validation not to work as they would still be valid options
is there no way to get the required="yes" validation to work on these
cfsele
I don't know cfselect (or cfform in general, really)... so if not using
cfform is an option, here's how it'd be done.
Please Select One
A
...
function checkThis(frm) {
if (document.getElementById('foo').selectedIndex == 0) {
alert('You Failed');
This is just how dropdowns work. You need to add a blank element at the
beginning. I usually do it manually like this:
Jake Churchill
CF Webtools
11204 Davenport, Ste. 100
Omaha, NE 68154
http://www.cfwebtools.com
402-408-3733 x103
-Original M
thanks a lot that worked perfectly!
>From: James Maltby <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: RE: drop down box
>Date: Mon, 24 Jul 2000 12:57:55 +0100
>
>
>
>
>
&g
RE: drop down box
A clunky way of doing this is to use CFIF in your option values:
Like:
<cfoutput query="getdetails">
<p>Status:
<select name="#pol_status#"
size="1">
<option value="All" <CFIF
#pol_status# eq
15 matches
Mail list logo