<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc = "http://purl.org/dc/elements/1.1/" xmlns="http://purl.org/rss/1.0/">
	<channel rdf:about="http://livedocs.adobe.com/">
	<title>LiveDocs Comments - coldfusion - 7 - htmldocs - 00000331.htm</title>	
		<link>http://livedocs.adobe.com/</link>
		<description>Macromedia LiveDocs - online documentation with user feedback.</description>
		<copyright>Copyright 2009, Macromedia, Inc.</copyright>
		<dc:date>2009-11-24T22:48:40</dc:date>
		<dc:language>en-us</dc:language>
		<items>
			<rdf:Seq>
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000331.htm#81588" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000331.htm#81505" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000331.htm#37706" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000331.htm#36197" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000331.htm#35880" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000331.htm#33959" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000331.htm#31043" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000331.htm#29670" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000331.htm#28056" />
			</rdf:Seq>
		</items>
	</channel>
	
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000331.htm#81588">
		<title>coldfusion/7/htmldocs/00000331.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000331.htm#81588</link>
		<description>AjasHadi is correct, that if you set a size&gt;=2 the required validation works and does not need any other tricks.&lt;br&gt;However, this does not solve the issue for those who want size=1, which is common.&lt;br&gt;In that case, the Note in the required attribute description saying you can use value=&quot; &quot; is correct for Flash format forms only.&lt;br&gt;This technique does not work for HTML or XML forms, as ipaul noted.&lt;br&gt;I tried the technique mentioned by apaleja does not seem to work for me, but I may be missing something (and I did change formName and selectName the cfform and cfselect name values.</description>
		<dc:creator>halL</dc:creator>
		<dc:type>1 1</dc:type>
		<dc:date>2008-03-06T10:38:33</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000331.htm#81505">
		<title>coldfusion/7/htmldocs/00000331.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000331.htm#81505</link>
		<description>Ok, I have tested this with many different scenarios and here are the results.&lt;br /&gt;&lt;br /&gt;1. The validation works only if you have size attribute of cfselect set to a value greater than 1.&lt;br /&gt;&lt;br /&gt;Here is my code that works&lt;br /&gt;&lt;br /&gt;&lt;cfselect name=&quot;sec_question&quot; required=&quot;yes&quot; message=&quot;You must select a security question to reset your password.&quot; size=&quot;2&quot;&gt;							&lt;br /&gt;    &lt;option value=&quot;1&quot;&gt;What is your mother's maiden name?&lt;/option&gt;&lt;br /&gt;    &lt;option value=&quot;2&quot;&gt;In what city were you born?&lt;/option&gt;&lt;br /&gt;   &lt;option value=&quot;3&quot;&gt;What is the title of your favorite book?&lt;/option&gt;&lt;br /&gt;   &lt;option value=&quot;4&quot;&gt;What is your favorite pet's name?&lt;/option&gt;&lt;br /&gt;&lt;br /&gt;&lt;/cfselect&gt;&lt;br /&gt;&lt;br /&gt;2. Here are some observations &lt;br /&gt;&lt;br /&gt;a. I didnt require selected=&quot;&quot; attribute inside cfselect&lt;br /&gt;&lt;br /&gt;b. I didnt require &lt;option value=&quot; &quot;&gt;Please select a value &lt;/option&gt; i.e. with a space or without space(either way, I tried and it didnt work)&lt;br /&gt;&lt;br /&gt;So try this and I am sure you wont be dissapointed. It took me a while to figure it out and I tried different options before I succeeded.</description>
		<dc:creator>AjasHadi</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2008-03-05T07:52:26</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000331.htm#37706">
		<title>coldfusion/7/htmldocs/00000331.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000331.htm#37706</link>
		<description>It is possible use required = 'yes' in a cfselect statement with a little javascripting code to accompany it.  &lt;br /&gt;&lt;br /&gt;By default, a cfselect and select input type will have whatever is displayed selected.  However, using the code below you can 'unselect' the default selection and then the required='yes' cf validation will kick in...&lt;br /&gt;&lt;br /&gt;&lt;script language=&quot;JavaScript&quot;&gt;&lt;!--&lt;br /&gt;document.formName.selectName.selectedIndex=-1;&lt;br /&gt;//--&gt;&lt;/script&gt;&lt;br /&gt;&lt;br /&gt;Cheers!</description>
		<dc:creator>apaleja</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-07-20T12:11:37</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000331.htm#36197">
		<title>coldfusion/7/htmldocs/00000331.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000331.htm#36197</link>
		<description>The required tag value=&quot; &quot; as shown below only appears to function correctly with FLASH, but does not work with HTML.&lt;br /&gt;&lt;br /&gt;Referring to this:&lt;br /&gt;You can work around this issue: format forms by having an initial option tag with value=&quot; &quot; (note the space character between the quotation marks).&quot;</description>
		<dc:creator>ipaul</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-07-01T08:21:41</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000331.htm#35880">
		<title>coldfusion/7/htmldocs/00000331.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000331.htm#35880</link>
		<description>Documentation should state that the size has to be greater than 1 for the multi select to work in flash.  It would be a nice feature to allow multiple selects in a drop down list.</description>
		<dc:creator>sloan2b</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-06-23T09:22:15</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000331.htm#33959">
		<title>coldfusion/7/htmldocs/00000331.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000331.htm#33959</link>
		<description>the attribute editable=&quot;yes&quot; is missing from the documentation.  This will allow a select box that also accepts user input.</description>
		<dc:creator>seancoyne</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-05-25T12:38:10</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000331.htm#31043">
		<title>coldfusion/7/htmldocs/00000331.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000331.htm#31043</link>
		<description>The sample on the CFSelect page for the &lt;option&gt; tags of:&lt;br /&gt;&lt;option value = &quot;thevalue&quot;&gt;Hello&lt;br /&gt;If you have to use value=&quot;thevalue&quot; NOT value = &quot;thevalue&quot; or the value clause is ignored.</description>
		<dc:creator>bgadget</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-04-07T13:35:45</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000331.htm#29670">
		<title>coldfusion/7/htmldocs/00000331.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000331.htm#29670</link>
		<description>FYI, Mike Kaminsky posted an interesting comment on resolving cfselect problems on the following page:&lt;br /&gt;&lt;br /&gt;http://livedocs.macromedia.com/coldfusion/5.0/CFML_Reference/Tags91.htm</description>
		<dc:creator>jrunrandy</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-03-14T14:06:08</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000331.htm#28056">
		<title>coldfusion/7/htmldocs/00000331.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000331.htm#28056</link>
		<description>To pass items between cfselect , cftree, cfgrid you have to use a bit of Actionscript. Here is what  I did: I have large a tree (three nodes depth), the user selects the node, next using Actionscript I pass this selection to another select  by putting some Actionscript code in the onChange event handler&lt;br /&gt;&lt;br /&gt;onChange=&quot;_root.select_name.addItem(tree_name.selectedNode.getProperty('data').display,tree_name.selectedNode.getProperty('data').value);&quot;&lt;br /&gt;&lt;br /&gt;As cfselect becomes listBox component of Flash, we can manipulate it using various predefined methods like addittem(dispy, value)&lt;br /&gt;&lt;br /&gt;I hope this helps!</description>
		<dc:creator>gorberto</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-02-17T01:26:18</dc:date>
	</item>
	</rdf:RDF>

