Solved

Adding a Null Vaule to my CFSELECT filed.

Posted on 2003-11-18
4
239 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 125 total points
Comment Utility
<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
Comment Utility
Thanks!
0
 
LVL 19

Expert Comment

by:cheekycj
Comment Utility
Glad to help and Thanx for the "A"

CJ
0
 

Expert Comment

by:TimTam
Comment Utility
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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now