field

field

Field component to liase with all string types

formtools.field:

Attributes

NameRequiredDefaultOptionsDescription
ftSeqNoUsed if you are relying on the framework to render your form. Used to sort the fields on the form.
ftFieldsetNoUsed if you are relying on the framework to render your form. Used to group the fields into HTML fieldsets.
ftWizardStepNoUsed if you are relying on the framework to render your form. Used to setup a wizard which is a multi step form process.
ftTypeNoTells the framework which of the formtool ui components to use when rendering your form. This will default to the [type].
ftLabelNoUsed by the FarCry form layout as the label of the form field. This will default to the [name].
ftLabelAlignmentNoinlineinline,blockUsed by FarCry Form Layouts for positioning of labels. inline or block.
ftMultiFieldNofalseadd wrapper div with class of multiField for extra styling.
ftClassNoCSS Class that can be used on the formtool input
ftStyleNoCSS Style that can be used on the formtool input
ftPlaceholderNoCSS placeholder text
ftValidationNoList of CSS classes that can be used for js validation
ftEditMethodNoThe function that will be used to render the html output for editing a property
ftDisplayMethodNoThe function that will be used to render the html output for displaying a property
ftValidateMethodNoThe function that will be used to render the html output for validating (processing) a property form submission
ftAjaxMethodNoThe function that will be used to render the html output for ajax requests of a property
ftAutoSaveNofalseShould the object be saved if the field changes?
ftWatchFieldsNoIf any of these fields change, then update the current field? Use the format 'typename.property' if you wish to update all field regardless of object. Use just 'property' if you wish to update just that object.
ftReloadOnAutoSaveNofalseIf the property is autosaved, should the entire page be refreshed?
ftRefreshPropertyOnAutoSaveNotrueIf the property is autosaved, should the field be refreshed?