![MACROMEDIA COLFUSION MX 7-CFML Reference Download Page 154](http://html1.mh-extra.com/html/macromedia/colfusion-mx-7-cfml/colfusion-mx-7-cfml_reference_3310974154.webp)
154
Chapter 2: ColdFusion Tags
style
HTML,
Flash,
XML
Opt
Styles to apply to the form. In HTML or XML format,
ColdFusion passes the style attribute to the browser
or XML.
In Flash format, must be a style specification in CSS
format. For detailed information on specifying Flash
styles, see Chapter 29, “Creating Forms in
Macromedia Flash” in
ColdFusion MX Developer’s
Guide
.
preserveData HTML
XML
Opt
no
When the cfform action attribute posts back to the
page that contains the form, this determines whether
to override the control values with the submitted
values.
•
false: uses values specified in the control tag
attributes.
•
true: uses corresponding submitted values.
Applies to these controls:
•
cfinput
,
cfslider
,
cftextinput
: overrides the
value
attribute value.
•
cfselect
controls that are populated from queries:
Overrides the
selected
attribute. See
cfselect
.
•
cftree
controls: overrides the
cftreeitem
expand
attribute. If
true
, expands previously-selected
elements. The
cftree
completePath
attribute must
be set to
yes
.
•
cfgrid
controls: has no effect. (This avoids
confusion as to whether data has been
resubmitted to the database by the control.)
onLoad
HTML
XML
Opt
JavaScript to execute when the form loads.
onReset
HTML
XML
Opt
JavaScript to execute when the user clicks a reset
button.
onSubmit
HTML
Flash
XML
Opt
JavaScript
or
ActionScript function to execute to
preprocess data before form is submitted. See
ColdFusion MX Developer’s Guide
. If any child tags
specify
onSubmit
field validation, ColdFusion does
the validation before executing this JavaScript.
Attribute
Applies
to
Req/
Opt
Default
Description
Summary of Contents for COLFUSION MX 7-CFML
Page 1: ...COLDFUSION MX7 CFML Reference...
Page 20: ...20 Chapter 1 Reserved Words and Variables...
Page 50: ...50 Chapter 2 ColdFusion Tags cfelse br Searching cfif cfloop cfif...
Page 101: ...cfdefaultcase 101 cfdefaultcase cfswitch cfoutput Your grade is grade cfoutput...
Page 115: ...cfdocumentsection 115 cfdocumentsection cfoutput cfdocument...
Page 411: ...cftable 411 cftable body html...
Page 515: ...Chr 515 maxlength 5 p input type Submit name input type RESET cfform...
Page 605: ...GetEncoding 605 WriteOutput The encoding is theEncoding cfscript cfif...
Page 629: ...GetProfileString 629 tr td input type Submit name Submit value Submit td td td tr table form...
Page 655: ...IIf 655 cfoutput IIf Hour Now GTE 12 DE It is afternoon or evening DE It is morning cfoutput b...
Page 664: ...664 Chapter 3 ColdFusion Functions cfelse h3 Conversion error h3 cfif...
Page 687: ...IsStruct 687 cfoutput cfquery cfif cfoutput hr Employee Add Complete cfoutput cfcase cfswitch...
Page 751: ...LSDateFormat 751 hr noshade cfoutput cfloop...
Page 861: ...StructFind 861 cfquery cfif cfoutput hr Employee Add Complete cfoutput cfcase cfswitch...
Page 903: ...Val 903 value Is the beginning numeric name form...
Page 932: ...932 Chapter 3 ColdFusion Functions...
Page 944: ...944 Chapter 4 ColdFusion MX Flash Form Style Reference...
Page 962: ...962 Chapter 5 Application CFC Reference...
Page 1054: ...1054 Chapter 6 ColdFusion MX Event Gateway Reference...