Re: How to make a CFSELECT Required

2010-12-01 Thread Leigh
It only applies to CFFORMS.   not quite the same thing.    No, I think you misunderstood. I was responding to Azadi's comment. There is a note in the documentation mentioning the required/space fix applies only to size=1 lists, and only with flash forms. I thought something may have

Re: How to make a CFSELECT Required

2010-12-01 Thread Aaron Rouse
You could add to the page your own _CF_hasValue function and let the new one handle any non out of the box needs. There is even an example of this done in a old comment on Ben Forta's blog. The example is for a single select, so if I understand the OP's original email then I think it would work

Re: How to make a CFSELECT Required

2010-11-30 Thread Dave Watts
as per cfml documentation, to make cfselecta required field you have to set the value of the default option (the pre-selected option which user has to change) to a signe space string option value= CFIF get04.CountryCode IS ''selected/cfifPlease select/option I wasn't aware you could do

Re: How to make a CFSELECT Required

2010-11-30 Thread Gerald Guido
I wasn't aware you could do that. Ditto That's a nice feature! It never ceases to amaze me how many convenience features are built into CF. I work with PHP quite a bit and while I am sure that I can always find a library to take care of most tasks, it still remains that I have to hunt down,

Re: How to make a CFSELECT Required

2010-11-30 Thread Leigh
to set the value of the default option (the pre-selected option which user has to change) to a signe space string I thought that only applied to flash forms? -Leigh ~| Order the Adobe Coldfusion Anthology now!

Re: How to make a CFSELECT Required

2010-11-30 Thread Mike Kear
It only applies to CFFORMS. not quite the same thing.One choice with CFFORMS is flash forms, but there are also XML forms and HTML forms, all of which use the built-in cfforms tags, validation and jquery functionality. Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced

How to make a CFSELECT Required

2010-11-29 Thread Rick Colman
I want to force the user to select a country code when submitting a form. The select box looks like: cfselect name=countrycode required=Yes size=5 message=Please select a country code. option value= CFIF get04.CountryCode IS ''selected/cfifPlease select/option option value=AU CFIF

Re: How to make a CFSELECT Required

2010-11-29 Thread Dave Watts
I want to force the user to select a country code when submitting a form. The select box looks like: cfselect name=countrycode required=Yes size=5 message=Please select a country code. option value= CFIF get04.CountryCode IS ''selected/cfifPlease select/option option value=AU CFIF

Re: How to make a CFSELECT Required

2010-11-29 Thread Azadi Saryev
as per cfml documentation, to make cfselecta required field you have to set the value of the default option (the pre-selected option which user has to change) to a signe space string option value= CFIF get04.CountryCode IS ''selected/cfifPlease select/option Azadi On 30/11/2010 12:23 ,