formtools

formtools

Prefixformtools
Library path/tags/formtools
CFImport

<formtools:advice ...>

XML StyleYes

Attributes

NameTypeRequiredDefaultOptionsDescription
objectidstringNo
fieldstringNo
messagestringNo
valuestringNo
classstringNovalidation-advice

<formtools:bind ...>

XML StyleYes

Attributes

NameTypeRequiredDefaultOptionsDescription
fieldstringNo
prefixstringNo
bindingstringNo
lRequiredFieldsstringNo*

<formtools:break ...>

XML StyleYes

Attributes

<formtools:button ...>

NameTypeRequiredDefaultOptionsDescription
None
XML StyleYes

Attributes

NameTypeRequiredDefaultOptionsDescription
valuestringYes The event submitted and captured by an ft:processForm tag.
typestringNosubmitbutton or submit. Default is 'submit'.
textstringNo#attributes.value#The text that will appear on the button. Default is the value.
idstringNof-btn-#application.fapi.getUUID()#The unique id of the button
validatestringNoShould the form be validated before the onClick event is fired. Default is 'true' for type submit and 'false' for buttons.
SelectedObjectIDstringNoA value that will be placed in the hidden form field form.selectedObjectID on submission.
onClickstringNojavascript that will be run when the user clicks this button
ClassstringNoAny css classes that are to be added to the button
StylestringNoAny css styles that are to be added to the button.
ConfirmTextstringNoA confirmation message that will appear before submission
urlstringNoA URL that you would like the button to redirect the page too.
targetstringNo_selfThe target for the url page to be redirected too.
bSpamProtectstringNofalseInstantiates cfformprotection to ensure the button is not clicked by spam.
stSpamProtectConfigstringNo#structNew()#config data that will override the config set in the webtop.
rbkeystringNoforms.buttons.#rereplacenocase(attributes.text,'[^\w\d]','','ALL')#The resource path for this button. Default is forms.buttons.value.
disabledstringNofalseShould the button be disabled
r_stButtonstringNothe name of the calling scope variable name to return the details of the farcry button
renderTypestringNofarcryButtonHow should the button be rendered (button, link, farcryButton(default))
primaryActionstringNoIs this button a primary action on the form
bDefaultActionstringNofalseDefault action when someone presses enter on a form.
iconstringNoThe jquery-ui icon to use
titlestringNoThe title of the button
prioritystringNothe level of button (primary,secondary,tertiary)
textOnClickstringNowhat should the text change to when the button is clicked.
textOnSubmitstringNowhat should the text change to when the button is submitted.
disableOnSubmitstringNotrueshould the button be disabled when the form is submitted
dropdownTogglestringNofalseused in combination with dropdownMenu to open the menu

<formtools:buttonPanel ...>

Wrapper for farcry buttons.

XML StyleYes

Attributes

NameTypeRequiredDefaultOptionsDescription
classstringNoform-actions
stylestringNo

<formtools:farcryButton ...>

XML StyleYes

Attributes

NameTypeRequiredDefaultOptionsDescription
valuestringYes The event submitted and captured by an ft:processForm tag.
typestringNobutton or submit. Default is 'submit' if inside an ft:form and 'button' if not.
textstringNo#attributes.value#The text that will appear on the button. Default is the value.
idstringNof-btn-#application.fapi.getUUID()#The unique id of the button
validatestringNoShould the form be validated before the onClick event is fired. Default is 'true' for type submit and 'false' for buttons.
SelectedObjectIDstringNoA value that will be placed in the hidden form field form.selectedObjectID on submission.
onClickstringNojavascript that will be run when the user clicks this button
ClassstringNoAny css classes that are to be added to the button
StylestringNoAny css styles that are to be added to the button.
ConfirmTextstringNoA confirmation message that will appear before submission
urlstringNoA URL that you would like the button to redirect the page too.
targetstringNo_selfThe target for the url page to be redirected too.
bSpamProtectstringNofalseInstantiates cfformprotection to ensure the button is not clicked by spam.
stSpamProtectConfigstringNo#structNew()#config data that will override the config set in the webtop.
rbkeystringNoforms.buttons.#rereplacenocase(attributes.value,'[^\w\d]','','ALL')#The resource path for this button. Default is forms.buttons.value.
disabledstringNofalseShould the button be disabled
r_stButtonstringNothe name of the calling scope variable name to return the details of the farcry button
renderTypestringNofarcryButtonHow should the button be rendered (button, link)
primaryActionstringNoIs this button a primary action on the form
bDefaultActionstringNofalseDefault action when someone presses enter on a form.
iconstringNoThe jquery-ui icon to use

<formtools:farcryButtonPanel ...>

Wrapper for farcry buttons.

XML StyleYes

Attributes

NameTypeRequiredDefaultOptionsDescription
idstringNo#application.fc.utils.createJavaUUID()#
indentForLabelstringNotrue

<formtools:field ...>

Renders the field with label and hint if requested.

XML StyleYes

Attributes

NameTypeRequiredDefaultOptionsDescription
labelstringNo The fields label
labelAlignmentstringNoinline options:inline,block; Used by FarCry Form Layouts for positioning of labels. inline or block.
forstringNoThe fieldname the label is for
classstringNostring The class to apply to the field wrapping div.
stylestringNo The class to apply to the field wrapping div.
hintstringNoThis will place a hint below the field
errorMessagestringNoThis will place an errormessage above the field
rbkeystringNocoapi.field.#rereplace(attributes.label,'[^\w]','','ALL')#The resource path for this field.

<formtools:fieldHint ...>

Sets the Field Hint of the parent ft:field

XML StyleYes

Attributes

NameTypeRequiredDefaultOptionsDescription
hintstringNoThe hint to render.

<formtools:fieldset ...>

Renders the fieldset with correct classes

XML StyleYes

Attributes

NameTypeRequiredDefaultOptionsDescription
legendstringNoThe legend of the fieldset if required.
stylestringNoThe style to apply to the fieldset.
helpTitlestringNoThe helping title for the fieldset.
helpSectionstringNoThe helping text for the fieldset.

<formtools:fieldsetHelp ...>

Sets the Field Hint of the parent ft:field

XML StyleYes

Attributes

NameTypeRequiredDefaultOptionsDescription
helpSectionstringNoThe help text to render.

<formtools:flashUpload ...>

XML StyleYes

Attributes

NameTypeRequiredDefaultOptionsDescription
fileTypesstringNo*
fileDescriptionstringNoAll types
labelstringNo
maxSizestringNo-1
swfstringNo#application.url.webtop#/facade/fileupload/fileUpload.swf
onCompletestringNo

<formtools:flashUploadInput ...>

XML StyleYes

Attributes

NameTypeRequiredDefaultOptionsDescription
valuestringNo
inputWidthstringNo
buttonStylestringNo
uploadButtonbooleanNotrue
progressBarbooleanNotrue
progressInfobooleanNotrue
progressBarStylestringNoborder-thickness:0;corner-radius: 0;fill-colors: ##00CCFF, ##0075D9;theme-color: ##00CCFF; border-color:##00CCFF;
uploadButtonLabelstringNoUpload
chooseButtonLabelstringNoChoose File
requiredstringNofalse
messagestringNo

<formtools:form ...>

XML StyleYes

Attributes

NameTypeRequiredDefaultOptionsDescription
NamestringNofarcryForm#randrange(1,999999999)#
TargetstringNo
ActionstringNo
methodstringNopost
onsubmitstringNo
ClassstringNo
StylestringNo
ValidationstringNo1
bAjaxSubmissionstringNofalse
ajaxMaskMsgstringNoForm Submitting, please wait...
ajaxMaskClsstringNox-mask-loading
ajaxTimeoutstringNo30
ajaxTargetstringNojQuery selector specifying the target element for the form response. Defaults to the FORM element.
bAddFormCSSstringNotrueAdd relevent form layout css
bFieldHighlightstringNotrueHighlight fields when focused
bFocusFirstFieldstringNofalseFocus on first form element.
defaultActionstringNoThe default action to be used if user presses enter key on browser that doesn't fire onClick event of first button.
autoSavestringNofalseEnter boolean to toggle default autosave values on properties
autoSaveToSessionOnlystringNofalseIf there are any autosave fields, should they save to the session only?

<formtools:object ...>

This tag is used to render a contentType on a display page

XML StyleYes
Basic usage. Rendering a packages/forms object:
<ft:object typename="mmInquiry" /&gt;
Rendering specific fields
&lt;ft:object typename="farLogin" lFields="username,password" prefix="login" legend="" /&gt;
Separate items from the same contentType, but grouped so ft:processFormObjects only sees one object:
&lt;h1&gt;Your Stuff&lt;/h1&gt;
<ft:object typename="mmInquiry" lFields="firstname,lastname" key="thereCanBeOnlyOne" /&gt;

&lt;h1&gt;Other Stuff&lt;/h1&gt;
<ft:object typename="mmInquiry" lFields="kidsname,dogsname" key="thereCanBeOnlyOne" /&gt;

Attributes

NameTypeRequiredDefaultOptionsDescription
ObjectIDstringNoObjectID of object to render
stObjectstringNoObject to render
typenamestringNoType of Object to render
keystringNoUsed to group several ft:objects into one object. (Used to generate a new object) For example, if you have several ft:object's in an ft:form you can use this to group them into one object for ft:processFormObjects
ObjectLabelstringNoUsed to group and label rendered object if required
lFieldsstringNoList of fields to render
lExcludeFieldsstringNolabelList of fields to exclude from render
classstringNowrapper class around output
stylestringNowrapper style around output
formatstringNoeditedit or display
IncludeLabelstringNo1
labelClassstringNocontrol-labelThe class to be applied to all labels
IncludeFieldSetstringNo
legendstringNothe legend to output on the fieldset
helpTitlestringNotitle for the help section
helpSectionstringNotext to provide help information for the fieldset
IncludeBRstringNo1
InTablestringNo0
insidePLPstringNo0how are we rendering the form
r_stFieldsstringNothe name of the structure that is to be returned with the form field information.
r_stPrefixstringNothe name of the structure that is to be returned with the form field prefix used.
stPropMetadatastringNo#structNew()#This is used to override the default metadata as setup in the type.cfc
wizardIDstringNoIf this object call is part of a wizard, the object will be retrieved from the wizard storage
bValidationstringNotrueFlag to determine if client side validation classes are added to this section of the form.
lHiddenFieldsstringNoList of fields to render as hidden fields that can be use to inject a value into the form post.
stPropValuesstringNo#structNew()#
bIncludeSystemPropertiesstringNofalseAllow system properties to be displayed..
lockstringNotrueLock if editing.
bShowFieldHintsbooleanNotrueFlag to determine if the field hints are display.
prefixstringNoAllows the developer to pass in the prefix they wish to use. Default is the objectid stripped of the dashes.
focusFieldstringNoEnter the name of the field to focus on when rendering the form.
autosavestringNoEnter boolean to toggle default autosave values on properties

<formtools:objectadmin ...>

XML StyleYes

Attributes

NameTypeRequiredDefaultOptionsDescription
typenamestringNo
columnliststringNolabel,datetimelastupdated
titlestringNo
ColumnListstringNo
SortableColumnsstringNo
lFilterFieldsstringNo
bFilterValidationbooleanNo0
descriptionstringNo
datasourcestringNo#application.dsn#
aColumnsarrayNo#arrayNew(1)#
aCustomColumnsarrayNo#arrayNew(1)#
lCustomColumnsstringNoA list of column label:webskin values
aButtonsarrayNo#arrayNew(1)#
bdebugbooleanNofalse
bFilterCategoriesbooleanNotrue
bFilterDateRangebooleanNotrue
bFilterPropertiesbooleanNotrue
permissionsetstringNo#attributes.typename#
defaultorderbystringNodatetimelastupdated
defaultorderstringNodesc
idstringNo#attributes.typename#
sqlorderbystringNodatetimelastupdated desc
sqlWherestringNo
lCategoriesstringNo
namestringNoobjectadmin
numitemsnumericNo#application.config.general.GENERICADMINNUMITEMS#
numPageDisplaynumericNo5
lButtonsstringNo*
lButtonsEmptystringNoadd,bulk upload,undelete
bPaginateTopbooleanNofalse
bPaginateBottombooleanNotrue
bDisplayTotalRecordsbooleanNotrue
bCheckAllbooleanNotrue
bSelectColbooleanNotrue
bEditColbooleanNotrue
bViewColbooleanNotrue
bFlowColbooleanNotrue
bPreviewColbooleanNotrue
editMethodstringNoedit
copyMethodstringNocopy
PackageTypestringNotypes
modulestringNocustomlists/#attributes.typename#.cfm
pluginstringNo
lCustomActionsstringNo
stFilterMetaDatastringNo#structNew()#
bShowActionListstringNotrue
qRecordSetstringNoUsed if the developer wants to pass in their own recordset
rbkeystringNocoapi.#attributes.typename#.objectadmin
addUrlParamsstringNo#structnew()#
copyUrlParamsstringNo#structnew()#
editUrlParamsstringNo#structnew()#
emptymessagestringNoYou do not currently have any content. Use the [Add] button above to begin.

<formtools:processform ...>

This tag is used to process form submissions. It is, in general, used at the top of a display page that is displaying a form.

This tag is used with the ft:form, ft:object and ft:button tags, and is the "action page" portion of form processing. The action attribute is a string that needs to match the ft:button's value attribute. So, for example, if you ft:button value="Submit" you'll want to have a ft:processform action="Submit" to handle the form.

XML StyleYes
&lt;ft:processform action="Submit"&gt;
 &lt;skin:bubble title="Blarg!" message="Das Blarg Ya!" /&gt;
 &lt;cfdump var="#stobj#" /&gt;
&lt;/ft:processform&gt;

Attributes

NameTypeRequiredDefaultOptionsDescription
actionstringNo* the ft:button value action this processform handles
rbkeystringNo
excludeActionstringNo
bHideFormsstringNofalse
ExitstringNo false If set to true the ft:form on the page will not show it's contents after this process runs. Note this doesn't stop page execution, just does not render ft:form contents.
bSpamProtectstringNofalseInstantiates cfformprotection to ensure the button is not clicked by spam.
stSpamProtectConfigstringNo#structNew()#config data that will override the config set in the webtop.

<formtools:processformobjects ...>

Processformobjects is used to save content objects to the database (via an ft:form and ft:processForm tag), and it can also be used to handle general FarCry forms.

XML StyleYes
Automatically saving a contentType to the database:
<ft:processForm action="Save">
 <ft:processFormObjects objectid="#stobj.objectid#" />
</ft:processForm>
Getting access to the form fields by hand:
<ft:processform action="Submit Form">
 <ft:processFormObjects typename="mmInquiry">
  &lt;cfdump var="#stProperties#" label="Stuff in the form" />
 </ft:processFormObjects>
</ft:processform>

Attributes

NameTypeRequiredDefaultOptionsDescription
stObjstringNo#structNew()#
ObjectIDstringNo
typenamestringNo
stPropMetadatastringNo#structNew()#
r_stPropertiesstringNostProperties
stPropMethodsstringNo#structNew()#
PackageTypestringNotypes
lArrayListGeneratestringNo
bSessionOnlystringNofalse

<formtools:serverSideValidation ...>

XML StyleYes

Attributes

NameTypeRequiredDefaultOptionsDescription
lrequiredfieldsstringNo

<formtools:sessionOnly ...>

XML StyleYes

Attributes

<formtools:splitButton ...>

Wrapper for farcry split buttons.

NameTypeRequiredDefaultOptionsDescription
None
XML StyleYes

Attributes

NameTypeRequiredDefaultOptionsDescription
classstringNo
stylestringNo
prioritystringNo
positionstringNobottom

<formtools:validateFormObjects ...>

XML StyleYes

Attributes

NameTypeRequiredDefaultOptionsDescription
stObjstringNo#structNew()#
ObjectIDstringNo
typenamestringNo
stPropMetadatastringNo#structNew()#
r_stPropertiesstringNostProperties
stPropMethodsstringNo#structNew()#
PackageTypestringNotypes
bimageautogeneratestringNofalse
lArrayListGeneratestringNo
bSessionOnlystringNofalse