longchar

longchar

longchar

Renders a text area

Examples

Basic
<cfproperty
         ftSeq="15"
         ftFieldset="Contact"
         name="address"
         type="longchar"
         hint="address of occupant"
         required="false"
         default=""
         ftLabel="Address"
         ftType="longchar"/>

Textarea with limited characters with character counter

Textarea with a minimum of 100 characters and a maximum of 250 characters, TRUNCATE excess data

Textarea with a minimum of 100 characters and a maximum of 250 characters, WARN on excess data, with custom warning message.

Formtool Metadata

Attributes

Name Default Options Required Hint
ftAjaxMethod No The function that will be used to render the html output for ajax requests of a property
ftAutoResize false No Should the textarea use jquery autoresize to resize to comfortable
ftClass No CSS Class that can be used on the formtool input
ftDisplayMethod No The function that will be used to render the html output for displaying a property
ftEditMethod No The function that will be used to render the html output for editing a property
ftFieldset No Used if you are relying on the framework to render your form. Used to group the fields into HTML fieldsets.
ftIncludeWrap true No Include the div wrappers required for a standard form. Turn off if you wish to handle your own layout.
ftLabel No Used by the FarCry form layout as the label of the form field. This will default to the [name].
ftLabelAlignment inline inline, block No Used by FarCry Form Layouts for positioning of labels. inline or block.
ftLimit 0 No Limits the amount of data the user can input. Provides a counter above text area
ftLimitMin No Use with ftLimit to define a range of acceptable characters
ftLimitOverage truncate No Character limiter method: truncate (default) - truncates user input, warn - notifies user of excess data
ftLimitWarning You have exceeded... No Warning message
ftSeq No Used if you are relying on the framework to render your form. Used to sort the fields on the form.
ftStyle No The style for the text area
ftType No Tells the framework which of the formtool ui components to use when rendering your form. This will default to the [type].
ftValidateMethod No The function that will be used to render the html output for validating (processing) a property form submission
ftValidation No List of CSS classes that can be used for js validation
ftWizardStep No Used if you are relying on the framework to render your form. Used to setup a wizard which is a multi step form process.