Name
cftextinput
Synopsis
<cfform> <cftextinput> ... </cfform>
Creates a Java-based text input
control for use within a cfform. Provides data
validation as well as customizable display characteristics.
Attributes
-
name="name" The form-field name for the text input control. Required.
-
align="alignment" Alignment of the text input control. Optional. Valid entries are
Left,Right,Top,TextTop,Bottom,AbsBottom,Middle,AbsMiddle, andBaseline.-
bgcolor="color" Background color for the text input control. Colors may be specified by name (
Black,Blue,Cyan,Darkgray,Gray,LightGray,Magenta,Orange,Pink,Red,White,Yellow) or hex code in the formbgcolor="##FFFFCC". The double pound signs are necessary to keep ColdFusion from throwing a syntax error, or you may omit the pound signs altogether. Optional.-
bold="Yes|No" If
Yes, displays text in bold. Optional. The default isNo.-
font="font_name" The font face to use for text displayed in the text input control.
-
fontsize="integer" The font size for text displayed in the text input control.
-
height="height_in_pixels" Height of the text input control in pixels. Optional.
-
hspace="horizontal_spacing_in_pixels" Width in pixels for the padding to the left and right of the text input control. Optional.
-
italic="Yes|No" If
Yes, displays text in italic. Optional. The default isNo.-
message="text" Text to appear if validation fails. Optional.
-
maxlength="integer" The maximum number of characters to accept in the text input control. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access