Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFMX Flash Forms - populating values in radio buttons/multi-selects

Status
Not open for further replies.

jwdcfdeveloper

Programmer
Mar 20, 2001
170
US
I'm new to Flash Forms and wanted to know if anyone knows how to get values to display to be selected for radio buttons and mult-select select boxes? The usual cfif logic inside of the value or selected attributes does not seem to work.
 
Sure you can select an option:

Code:
<cfform format="flash" width="400" >
<cfselect name="me" multiple="true" size="3"  >
	<option value="" >this is not selected</option>
	<option value="" selected >this is selected okay</option>
	<option value="" >this is not selected</option>
	<option value="" >this is not selected</option>
	<option value="" >this is not selected</option>
	<option value="" >this is not selected</option>	
</cfselect>

<cfinput type="checkbox"  name="checkme" checked="true" >Im checked
<cfinput type="checkbox"  name="checkme2"  >Im not checked
</cfform>

 
It's not that simple. I need to know how to dynamically select where the data is coming directly from a db. For instance, in a regular form I could do this w/ the radio buttons
<input type="radio" name="myButton" value="1" <cfif q1.val eq 1>checked</cfif>>. I can't do that with a flash form without an error.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top