typeahead

typeahead

typeahead

Type-ahead

Examples

UUID field:
<cfproperty 
    name="someImage" type="uuid" hint="Related content items." required="no" default="" 
    ftseq="43" ftfieldset="Related Content" ftwizardStep="News Body" ftlabel="One image"
    fttype="typeahead" ftJoin="dmImage" />
Array field:
<cfproperty 
    name="multipleImages" type="array" hint="Related content items." required="no" default="" 
    ftseq="44" ftfieldset="Related Content" ftwizardStep="News Body" ftlabel="Many images"
    fttype="typeahead" ftJoin="dmImage" />
Inline data:
<cfproperty 
    name="anotherImage" type="uuid" hint="Related content items." required="no" default="" 
    ftseq="45" ftfieldset="Related Content" ftwizardStep="News Body" ftlabel="Another image"
    fttype="typeahead" ftJoin="dmImage" ftInlineData="true" />

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
ftAllowCreate true true, false No Set to false to disable the option to create a new object to attach
ftAllowEdit false true, false No Allows user edit new record within the library picker
ftAllowLibraryEdit false No ???
ftAllowRemoveAll false true, false No Allows user to remove all items at once
ftAllowSelect true true, false No Allows user to select existing records within the library picker
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.
ftFirstListLabel -- SELECT -- No Used with ftRenderType, this is the value of the first element in the list
ftInlineData false No Set to true to put all available options inline. This is only really appropriate for relatively small, static data sets.
ftJoin comma seperated list of types Yes The related content type that this property joins to. Currently TYPEAHEAD only supports one content type, not a list as array and uuid do.
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.
ftLibraryData No Name of a function to return the library data. By default will look for ./webskin/typename/librarySelected.cfm
ftlibrarydatasqlorderby datetimelastupdat... No Nominate a specific property to order library results by.
ftlibrarydatasqlwhere No A simple where clause filter for the library data result set. Must be in the form PROPERTY OPERATOR VALUE. For example, status = 'approved'
ftLibraryDataTypename No Typename containing the function defined in ftLibraryData
ftLibraryEditWebskin edit No ???
ftLibraryListItemHeight No ???
ftLibraryListItemWidth No ???
ftLibrarySelectedListClass arrayDetail No overwrite the style class of the list
ftLibrarySelectedListStyle No write your own inline style for the class
ftLibrarySelectedWebskin librarySelected No webskin to overwrite each record in list
ftPlaceholder Type to search No
ftRemoveType remove delete, detach No detach will only remove from the join, delete will remove from the database
ftRenderType Library Library, list, checkbox or radio No Specify how to render the form element for the array, library pop-up, select dropdown, or list of checkbox or radio buttons.
ftSelectMultiple true true, false No Allow selection of multiple items from a select list. Values - true or false, if this property is omitted then allowing multiple select is default
ftSelectSize 10 No Specify the number of items displayed of a select list.
ftSeq No Used if you are relying on the framework to render your form. Used to sort the fields on the form.
ftStyle No CSS Style that can be used on the formtool input
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
ftValidStatus all No Specify the status filter on the returned objects. As well as an explicit list of statuses, this can also be 'all' or 'mode' (to use the current user's settings)
ftWatch No The properties in this list are submitted to ajax requests along with the current value. This is in contrast with the normal behaviour of ftWatch, which is to reload the entire field on a change in a watched field.
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.