Solved

Adding a Null Vaule to my CFSELECT filed.

Posted on 2003-11-18
4
241 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
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
cloud web Service looking for a home... 3 100
Citrix Web Interface 5.4 logon section customization 2 73
Has my website been infiltrated? 21 64
ip / url redirect 13 68
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

914 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

16 Experts available now in Live!

Get 1:1 Help Now