| Parameter | Description | Default / Example |
dateformat | overwrites the JSCALENDARDATEFORMAT preference for date fields | dateformat="%d %b %Y" |
donotnotify | disables notifications | undefined / donotnotify="on" |
form | (required attribute) a name of a topic with a TWikiForms definition | undefined / form="MyTestForm" |
hidden | a comma separated list of form field names to hide in all modes | undefined / hidden="Field1,Field2" |
hideheader | if set, disables the form header | hideheader="no" |
layout | a topic with a layout (see Form Layout section); syntax: layout="<topic>#<layout name>"; if layout name is omitted a default layout will be taken | undefined / layout="TestFormLayout#test1" |
mode | render mode of the form, allowed values: create (default), edit, view (default if topic exists) | mode="create" |
onlynewtopic | disables overwrite of existing topics | onlynewtopic="on" |
onlywikiname | disallows the usage of non-TWiki.WikiWords for topic names | onlywikiname="on" |
order | changes the display order of form fields; order value is a comma separated list of field names; if the order list is incomplete all missing and unhidden form fields will be added; there are special values for order: [:alpha:], [:dalpha:], [:num:] and [:dnum:], e.g. order="[:alpha:]" to sort all fields alphanumerical | undefined / order="Field1, Field2" |
script | changes the behavior of edit/create modes; allowed values: save - saves the form data; edit - edit the resulting topic | script="save" |
template | a template name for predefined attributes | undefined / template="helpdesk" |
templatetopic | a template topic; useful for the create mode | undefined / templatetopic="MyHelpDeskTopicTemplate" |
text | the topic text; text will be ignored if a templatetopic is defined | undefined / text="my small topic text" |
topic | an existing topic for edit and view mode or a topic template name for a new topic (create mode) (e.g. TestFormDataXXXXXXXXXX) | topic="%TOPIC%XXXXXXXXXX" / topic="TestFormData%SERVERTIME{$epoch}%" |
topicparent | a topic parent; useful for the create mode; if undefined the form topic will be used | topicparent="%WEB%.%TOPIC%" / topicparent="MyHelpDesk" |