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
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
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
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,
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!
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
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
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
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 ,
9 matches
Mail list logo