Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Adding a Null Vaule to my CFSELECT filed.

Posted on 2003-11-18
4
Medium Priority
?
249 Views
Last Modified: 2013-12-24
HI, I have a Drop down list querying from a table in my database.  The drop down list will have Software titles.  People will be able to add software titles but I would like them to be in alphabectical order.

I can do this easily.

But when the page loads, I would like there to be a blank  in the drop down list FIRST with a Null vaule.  That what software is not choosen by mistake.

Can anyone help?

0
Comment
Question by:fixx17
  • 2
4 Comments
 
LVL 19

Accepted Solution

by:
cheekycj earned 500 total points
ID: 9774249
<cfselect name="yourselect" message="Please select a software" query="yourquery" value="yourcolumnforvalues"
display="yourcolumnfordisplay" required="yes">
  <option value = "" selected></option>
</cfselect>

CJ
0
 
LVL 1

Author Comment

by:fixx17
ID: 9774282
Thanks!
0
 
LVL 19

Expert Comment

by:cheekycj
ID: 9775354
Glad to help and Thanx for the "A"

CJ
0
 

Expert Comment

by:TimTam
ID: 12611572
I am using something similar, however I would like to use the cfselect required="yes" parameter to force the user to make a selection before submitting.

In the example above, the cfselect / cfform accepts the empty string as a valid value rather than forcing the user to make a selection from the list below "".

Can this be fixed somehow.

Thanks in advance.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question