drop down box

2009-09-22 Thread Richard White
hi we want to have a drop down box on a form that has attribute 'required' and a message that displays if no value is select when the form is submitted however, using cfselect automatically makes the first option selected, but we want the user to physically select an option how can we code

RE: drop down box

2009-09-22 Thread Jake Churchill
, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 -Original Message- From: Richard White [mailto:rich...@j7is.co.uk] Sent: Tuesday, September 22, 2009 11:04 AM To: cf-talk Subject: drop down box hi we want to have a drop down box on a form that has attribute

Re: drop down box

2009-09-22 Thread Charlie Griefer
down box on a form that has attribute 'required' and a message that displays if no value is select when the form is submitted however, using cfselect automatically makes the first option selected, but we want the user to physically select an option how can we code it so that no option

Re: drop down box

2009-09-22 Thread Richard White
on these cfselect's hi we want to have a drop down box on a form that has attribute 'required' and a message that displays if no value is select when the form is submitted however, using cfselect automatically makes the first option selected, but we want the user to physically select an option how

Re: drop down box

2009-09-22 Thread Tony Bentley
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:

Re: drop down box

2009-09-22 Thread Jason Fisher
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

Re: drop down box

2009-09-22 Thread Richard White
the entire select works looks like this: cfset lookupOptionsArray = listtoarray(Blood,DNA,Other) / cfselect name=sampleType size=1 multiple=no style=width:200px cfloop index=i from=1 to=#arraylen(lookupOptionsArray)# option value=cfoutput#lookupOptionsArray[i]#/cfoutput

Re: drop down box

2009-09-22 Thread Jason Fisher
Note the initial empty option. Also, note that you only need 1 set of enclosing cfoutput tags. cfset lookupOptionsArray = listtoarray(Blood,DNA,Other) / cfselect name=sampleType size=1 multiple=no style=width:200px required=yes message=Please select a Sample Type to continue. option

Re: drop down box

2009-09-22 Thread Richard White
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.

Re: drop down box

2009-09-22 Thread Charlie Griefer
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

Re: drop down box

2009-09-22 Thread Jason Fisher
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

Re: drop down box

2009-09-22 Thread Richard White
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 to

Re: drop down box

2009-09-22 Thread Azadi Saryev
as the docs Charlie has posted say, the value must be a space, not an empty string: option value= Please select.../option 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

Re: drop down box

2009-09-22 Thread Dave Watts
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

multiple select drop down box and oracle dates

2008-09-05 Thread James Blaha
Hi Folks, I ran into an issue with a multiple select drop down box that has a list of dates i.e. mm/dd/. On my action page I have a cfquery that I would like to pass the list of dates to like: Mydates IN ('08/01/2008','08/02/2008',…) In oracle I need to do something like: TO_DATE('08

dynamic drop down box

2007-09-26 Thread erik tom
I have CF component which supposed to populate the requirements and of thwe selected program. I wrote the code but there is something wrong cffunction name=updateProgramRequirements cfparam name=form.program default= cfquery name=programs datasource=HotBanana_Manager SELECT id,

Re: dynamic drop down box

2007-09-26 Thread Howard Fore
Well, what's the error you are getting? You can't just barf the code like that and realistically expect an answer. If one were inclined to copy and paste your code to try and run it they couldn't because they don't have the database you're using (no, that's not an invitation to send the DDL along

Re: dynamic drop down box

2007-09-26 Thread Brian Kotek
I already responded to the exact same post on CFCDev (which was completely off topic for that list). I actually told him all of this, to limit the code posted to only problem code, to actually explain what the error is, and that you can't just say this doesn't work and paste five screens of code

drop down box

2000-07-24 Thread janey smith
having a problem passing values submitted in a drop down list box. on my form page the user selects their choices from the drop down, the the user can choose to edit these choices on the next page, their original choices shoud appear on the edit page, which follows: CFQUERY NAME="GetDetails"

RE: drop down box

2000-07-24 Thread James Maltby
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN" HTML HEAD META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1" META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2650.12" TITLERE: drop down box/TITLE /HEAD BODY PFO

RE: drop down box

2000-07-24 Thread janey smith
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 !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN" HTML HEAD META