Solved

Adding a Null Vaule to my CFSELECT filed.

Posted on 2003-11-18
4
244 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Tool to email me when a website changes 29 138
Intranet and Kerberos Authentication (not sharepoint!) 8 152
Standalone trial or freeware to do SSL scan 4 54
Problem to copy file 14 45
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…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

735 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