Posted By

dreamstarter on 07/15/14


select ColdFusion record editing

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


dynamic select elements

 / Published in: ColdFusion

This little block appears in most of my Application.cfm files for admins. That allows me to easily specify which item is selected by default in a record-editing form. For instance:

<option#Selected[> or

  1. <!--- Structures for building dynamic select, radio, and checkbox inputs --->
  2. <cfset Selected=StructNew()>
  3. <cfset Selected.Yes=" Selected">
  4. <cfset Selected.No="">
  5. <cfset Checked=StructNew()>
  6. <cfset Checked.Yes=" Checked">
  7. <cfset Checked.No="">

Report this snippet  

You need to login to post a comment.