User Guide

324 Chapter 2: ColdFusion Tags
cfslider
Description
Puts a slider control, for selecting a numeric value from a range, in a ColdFusion form. The slider
moves over the slider groove. As the user moves the slider, the current value displays. Used within
a
cfform tag.
Category
Forms tags
Syntax
<cfslider
name = "name"
label = "text"
refreshLabel = "Yes" or "No"
range = "min_value, max_value"
scale = "uinteger"
value = "integer"
onValidate = "script_name"
message = "text"
onError = "text"
height = "integer"
width = "integer"
vSpace = "integer"
hSpace = "integer"
align = "alignment"
tickMarkMajor = "Yes" or "No"
tickMarkMinor = "Yes" or "No"
tickMarkImages = "URL1, URL2, URLn"
tickMarkLabels = "Yes" or "No" or "list"
lookAndFeel = "motif" or "windows" or "metal"
vertical = "Yes" or "No"
bgColor = "color"
textColor = "color"
font = "font_name"
fontSize = "integer"
italic = "Yes" or "No"
bold = "Yes" or "No"
notSupported = "text">
See also
cfapplet, cfinput, cfform, cfselect, cftextinput, cftree, cftreeitem
History
ColdFusion MX: Deprecated the img, imgStyle, and grooveColor attributes. They might not
work, and might cause an error, in later releases.
Attributes
Attribute Req/Opt Default Description
name Required Name of
cfslider control.
label Optional Label to display with control; for example,
"Volume" This
displays:
"Volume %value%"
To reference the value, use "%value%". If %% is omitted,
slider value displays directly after label.