| |||||||||||||
| Line: 29 to 29 | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||
| Changed: | |||||||||||||
| < < |
| ||||||||||||
| > > |
| ||||||||||||
| |||||||||||||
| ||||||||||||||||
| Line: 42 to 42 | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||
| Changed: | ||||||||||||||||
| < < |
Example: WebForm
| *Name* | *Type* | *Size* | *Values* | *Tooltip message* | | Know.TopicClassification | select | 1 | Know.NoDisclosure, Know.PublicSupported, Know.PublicFAQ | blah blah... | | Know.OperatingSystem | checkbox | 3 | Know.OsHPUX, Know.OsLinux, Know.OsSolaris, Know.OsWin | blah blah... | | Know.OsVersion | text | 16 | | blah blah... | | |||||||||||||||
| > > |
Example: WebForm | *Name* | *Type* | *Size* | *Values* | *Tooltip message* | | TopicClassification | select | 1 | NoDisclosure, PublicSupported, PublicFAQ | blah blah... | | OperatingSystem | checkbox | 3 | OsHPUX, OsLinux, OsSolaris, OsWin | blah blah... | | OsVersion | text | 16 | | blah blah... |
| |||||||||||||||
| ||||||||||||||||
| Changed: | ||||||||||||||||
| < < |
| |||||||||||||||
| > > |
| |||||||||||||||
Defining a Form with Multiple Topics | ||||||||||||||||
| Line: 68 to 64 | ||||||||||||||||
Example: WebFormTemplate | ||||||||||||||||
| Changed: | ||||||||||||||||
| < < |
| |||||||||||||||
| > > |
| |||||||||||||||
| ||||||||||||||||
| Changed: | ||||||||||||||||
| < < |
| |||||||||||||||
| > > |
| |||||||||||||||
Values field blank.
| ||||||||||||||||
| Changed: | ||||||||||||||||
| < < |
| |||||||||||||||
| > > |
| |||||||||||||||
| ||||||||||||||||
| Changed: | ||||||||||||||||
| < < |
| |||||||||||||||
| > > |
| |||||||||||||||
| ||||||||||||||||
| Line: 106 to 102 | ||||||||||||||||
| ||||||||||||||||
| Changed: | ||||||||||||||||
| < < |
| |||||||||||||||
| > > |
| |||||||||||||||
Boxes with a tick must be specified.
Setting Up Multiple Form Options | ||||||||||||||||
| Line: 144 to 140 | ||||||||||||||||
data/warning.txt.
| ||||||||||||||||
| Added: | ||||||||||||||||
| > > |
Using Forms For SettingsExample process to change your WebPreferences to use forms instead of{3 spaces}* Set statements:
S attribute has been specified (S for Setting).
If you change the form, the changes will not take affect until you edit and save the preferences' topics again.
Using the TWiki:Plugins.EditTablePlugin on WebPreferencesForm makes adding new prefedrences a breeze.
A possibly unwanted side effect for using forms for the SKINS setting in their personal user topic: because the User Preferences are final you can't have different skins for different webs as the user's setting always wins. A workaround is to simply omit SKIN in the form.
Another example, this one using EditTablePlugin, source:
%EDITTABLE{ header="|*Name*|*Type*|*Size*|*Values*|*Tooltip message*|*Attributes*|" format="|text,20|text,20|text,20|text,20|text,20|text,1|" }%
Result (after some editing):
| |||||||||||||||
|
-- TWiki:Main.JohnTalintyre - 16 Aug 2001 -- TWiki:Main.MikeMannix - 05 Jan 2002 | ||||||||||||||||
| Changed: | ||||||||||||||||
| < < |
-- TWiki:Main.PeterThoeny - 25 Apr 2004 | |||||||||||||||
| > > |
-- TWiki:Main.PeterThoeny - 25 Apr 2004 -- TWiki:Main.MattWilkie - 27 Jul 2004 | |||||||||||||||
| ||||||||||||||||
| |||||||||||||||||||||||||||||||||
| Line: 24 to 24 | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||
| Changed: | |||||||||||||||||||||||||||||||||
| < < |
| ||||||||||||||||||||||||||||||||
| > > |
| ||||||||||||||||||||||||||||||||
Defining a Form in One Topic | |||||||||||||||||||||||||||||||||
| Line: 142 to 144 | |||||||||||||||||||||||||||||||||
data/warning.txt.
| |||||||||||||||||||||||||||||||||
| Changed: | |||||||||||||||||||||||||||||||||
| < < |
-- JohnTalintyre - 16 Aug 2001 -- MikeMannix - 05 Jan 2002 | ||||||||||||||||||||||||||||||||
| > > |
-- TWiki:Main.JohnTalintyre - 16 Aug 2001 -- TWiki:Main.MikeMannix - 05 Jan 2002 -- TWiki:Main.PeterThoeny - 25 Apr 2004 | ||||||||||||||||||||||||||||||||
| Added: | |||||||||||||||||||||||||||||||||
| > > |
|||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||
| |||||||||||
| Line: 10 to 10 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| By adding form-based input to freeform content, you can structure topics with unlimited, easily searchable categories. When forms are enabled for a web and selected in a topic, a single form appears in edit mode, and the contents are rendered as a table when viewed on the display page. You can define unlimited forms per web. For each topic, you can select a template if more than one is defined, or remove forms entirely. Form input values are stored as TWikiMetaData; all data is saved. | |||||||||||
| Changed: | |||||||||||
| < < |
Form Templates replace TWikiCategoryTables from the 01-Dec-2000 version of TWiki.
Main Changes from Category TablesThe Form Template system is a more powerful, flexible replacement for the original TWikiCategoryTable. Data from existing category tables can be imported directly.
Importing Category Table DataOn upgrading from the previous TWiki, a Form Template topic has to be built for each web that used a Category Table, recreating the fields and values from the oldtwikicatitems.tmpl. The replacement Form Template must be set as the first item in the WebPreferences variable WEBFORMS. If missing, pages will display, but attempting to edit results in an error message.
The new Form Template system should work with old Category Table data with no special conversion. Data is assigned to Meta variables the first time an imported topic is edited and saved in the new system.
data/warning.txt.
| ||||||||||
| > > |
Form Templates replace TWikiCategoryTables from the 01-Dec-2000 version of TWiki. - see #FormsVsCategoryTables | ||||||||||
Defining a Form Template | |||||||||||
| Line: 141 to 122 | |||||||||||
Using Form DataTWikiForms accept user-input data, stored as TWikiMetaData. Meta data also contains program-generated info about changes, attachments, etc. To find, format and display form and other meta data, see TWikiMetaData,SEARCH and METASEARCH variables in TWikiVariables, and TWiki Formatted Search for various options.
| |||||||||||
| Added: | |||||||||||
| > > |
Main Changes from Category TablesThe Form Template system is a more powerful, flexible replacement for the original TWikiCategoryTable. Data from existing category tables can be imported directly.
Importing Category Table DataOn upgrading from the previous TWiki, a Form Template topic has to be built for each web that used a Category Table, recreating the fields and values from the oldtwikicatitems.tmpl. The replacement Form Template must be set as the first item in the WebPreferences variable WEBFORMS. If missing, pages will display, but attempting to edit results in an error message.
The new Form Template system should work with old Category Table data with no special conversion. Data is assigned to Meta variables the first time an imported topic is edited and saved in the new system.
data/warning.txt.
| ||||||||||
|
-- JohnTalintyre - 16 Aug 2001 -- MikeMannix - 05 Jan 2002 | |||||||||||
| ||||||||
| Line: 117 to 117 | ||||||||
|---|---|---|---|---|---|---|---|---|
| ||||||||
| Added: | ||||||||
| > > |
Including Forms in New Topics | |||||||
| ||||||||
| Deleted: | ||||||||
| < < |
Including Forms in New TopicsWhen you create a new topic in a web that has theWEBFORMS Preferences variable set, an Add Form button appears at the bottom of the page. You can start all new topics with forms enabled, and pre-select a form if there's more than one available:
formtemplate parameter in the URL.
| |||||||
Setting Up Multiple Form Options | ||||||||
| ||||||||
| Line: 15 to 15 | ||||||||
|---|---|---|---|---|---|---|---|---|
Main Changes from Category Tables | ||||||||
| Changed: | ||||||||
| < < |
Form Templates more powerful, flexible replacement for the original TWikiCategoryTable. Data from existing category tables can be imported directly. | |||||||
| > > |
The Form Template system is a more powerful, flexible replacement for the original TWikiCategoryTable. Data from existing category tables can be imported directly. | |||||||
| ||||||||
| Line: 54 to 54 | ||||||||
Defining a Form in One Topic
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
TWiki Forms | ||||||||||||||||
| Changed: | ||||||||||||||||
| < < |
Form-based input in topics, with name/value pairs stored as Meta Data variables; multiple forms per web & topic | |||||||||||||||
| > > |
Form-based input in topics, with name/value pairs stored as Meta Data variables; choose one of multiple forms per web & topic | |||||||||||||||
Overview | ||||||||||||||||
| Changed: | ||||||||||||||||
| < < |
By adding form-based input to free-form content, you can structure topics with unlimited, easily searchable categories. When forms are enabled for a web and selected in a topic, the form appears in edit mode, and the contents are rendered as a table when viewing the actual page. When editing, can switch forms, if more than one is defined, or remove forms entirely. Form input values are stored as TWikiMetaData; all data is saved. | |||||||||||||||
| > > |
By adding form-based input to freeform content, you can structure topics with unlimited, easily searchable categories. When forms are enabled for a web and selected in a topic, a single form appears in edit mode, and the contents are rendered as a table when viewed on the display page. You can define unlimited forms per web. For each topic, you can select a template if more than one is defined, or remove forms entirely. Form input values are stored as TWikiMetaData; all data is saved. | |||||||||||||||
| Form Templates replace TWikiCategory Tables from the 01-Dec-2000 version of TWiki. | ||||||||||||||||
| Line: 29 to 29 | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| The new Form Template system should work with old Category Table data with no special conversion. Data is assigned to Meta variables the first time an imported topic is edited and saved in the new system. | ||||||||||||||||
| Changed: | ||||||||||||||||
| < < |
NOTE: If things aren't working correctly, there may be useful entries in data/warning.txt.
| |||||||||||||||
| > > |
data/warning.txt.
| |||||||||||||||
Defining a Form Template | ||||||||||||||||
| Changed: | ||||||||||||||||
| < < |
A Form Template is simply a page containing your form, defined in a table where each row is one form field. | |||||||||||||||
| > > |
A Form Template is simply a page containing your form, defined as a table where each row is one form field. | |||||||||||||||
Form Template Elements
| ||||||||||||||||
| Changed: | ||||||||||||||||
| < < |
| |||||||||||||||
| > > |
| |||||||||||||||
| ||||||||||||||||
| Line: 53 to 53 | ||||||||||||||||
Defining a Form in One Topic | ||||||||||||||||
| Changed: | ||||||||||||||||
| < < |
| |||||||||||||||
| > > |
| |||||||||||||||
| ||||||||||||||||
| Changed: | ||||||||||||||||
| < < |
| |||||||||||||||
| > > |
| |||||||||||||||
|
| ||||||||||||||||
| Changed: | ||||||||||||||||
| < < |
Example: WebForm from the TWiki.Know web | |||||||||||||||
| > > |
Example: WebForm
| |||||||||||||||
| *Name* | *Type* | *Size* | *Values* | *Tooltip message* | | Know.TopicClassification | select | 1 | Know.NoDisclosure, | ||||||||||||||||
| Line: 77 to 77 | ||||||||||||||||
Defining a Form with Multiple Topics | ||||||||||||||||
| Changed: | ||||||||||||||||
| < < |
The Form Template can also be defined in an alternative way by using more then one topic: | |||||||||||||||
| > > |
Forms can also be defined by using form templates that retrieve field values from one or more separate topics: | |||||||||||||||
| Changed: | ||||||||||||||||
| < < |
| |||||||||||||||
| > > |
| |||||||||||||||
Example: WebFormTemplate | ||||||||||||||||
| Changed: | ||||||||||||||||
| < < |
| |||||||||||||||
| > > |
| |||||||||||||||
| ||||||||||||||||
| Changed: | ||||||||||||||||
| < < |
| |||||||||||||||
| > > |
Values field blank.
| |||||||||||||||
| ||||||||||||||||
| Changed: | ||||||||||||||||
| < < |
| |||||||||||||||
| > > |
| |||||||||||||||
| ||||||||||||||||
| Line: 101 to 103 | ||||||||||||||||
| ||||||||||||||||
| Changed: | ||||||||||||||||
| < < |
| |||||||||||||||
| > > |
| |||||||||||||||
| ||||||||||||||||
| Added: | ||||||||||||||||
| > > |
||||||||||||||||
Enabling Forms by Web | ||||||||||||||||
| Changed: | ||||||||||||||||
| < < |
Forms are enabled on a per web basis. The WEBFORMS variable in WebPreferences is optional and defines a list of possible Form Templates. Example:
| |||||||||||||||
| > > |
Forms are enabled on a per web basis. The WEBFORMS variable in WebPreferences is optional and defines a list of possible form templates. Example:
| |||||||||||||||
| ||||||||||||||||
| Changed: | ||||||||||||||||
| < < |
| |||||||||||||||
| > > |
| |||||||||||||||
| ||||||||||||||||
| Changed: | ||||||||||||||||
| < < |
| |||||||||||||||
| > > |
| |||||||||||||||
Including Forms in New Topics | ||||||||||||||||
| Changed: | ||||||||||||||||
| < < |
When you create a new topic in a web that has the WEBFORMS Preferences variable set, an Add Form button appears at the bottom of the page. You can start all new topics with forms enabled, and pre-select a form if there's more than one available: | |||||||||||||||
| > > |
When you create a new topic in a web that has the WEBFORMS Preferences variable set, an Add Form button appears at the bottom of the page. You can start all new topics with forms enabled, and pre-select a form if there's more than one available:
| |||||||||||||||
| ||||||||||||||||
| Changed: | ||||||||||||||||
| < < |
A form embedded in a topic also appears in a new topic. This is done by specifying the formtemplate parameter in the URL.
| |||||||||||||||
| > > |
A form embedded in a topic also appears in a new topic. This is done by specifying the formtemplate parameter in the URL.
| |||||||||||||||
Setting Up Multiple Form Options | ||||||||||||||||
| Changed: | ||||||||||||||||
| < < |
| |||||||||||||||
| > > |
| |||||||||||||||
| Changed: | ||||||||||||||||
| < < |
| |||||||||||||||
| > > |
| |||||||||||||||
| Changed: | ||||||||||||||||
| < < |
| |||||||||||||||
| > > |
Form Data Storage | |||||||||||||||
| Changed: | ||||||||||||||||
| < < |
Form Template Data Storage | |||||||||||||||
| > > |
The form topic name, fields and values are stored as TWikiMetaData - the order of the field/value pairs is the same as in the template. | |||||||||||||||
| Changed: | ||||||||||||||||
| < < |
The Form Template topic name, fields and values are stored as TWikiMetaData. The order of field/value pairs in the Meta Data is the same as in the Template. | |||||||||||||||
| > > |
Using Form DataTWikiForms accept user-input data, stored as TWikiMetaData. Meta data also contains program-generated info about changes, attachments, etc. To find, format and display form and other meta data, see TWikiMetaData,SEARCH and METASEARCH variables in TWikiVariables, and TWiki Formatted Search for various options.
| |||||||||||||||
|
-- JohnTalintyre - 16 Aug 2001 | ||||||||||||||||
| Changed: | ||||||||||||||||
| < < |
-- MikeMannix - 03 Dec 2001 | |||||||||||||||
| > > |
-- MikeMannix - 05 Jan 2002 | |||||||||||||||
| ||||||||||||||||
| ||||||||
| Line: 101 to 101 | ||||||||
|---|---|---|---|---|---|---|---|---|
| ||||||||
| Deleted: | ||||||||
| < < |
||||||||
| ||||||||
| Deleted: | ||||||||
| < < |
||||||||
| ||||||||
| Deleted: | ||||||||
| < < |
||||||||
| ||||||||
| Deleted: | ||||||||
| < < |
||||||||
| ||||||||
| Deleted: | ||||||||
| < < |
||||||||
Enabling Forms by Web | ||||||||
| Line: 148 to 143 | ||||||||
|
The Form Template topic name, fields and values are stored as TWikiMetaData. The order of field/value pairs in the Meta Data is the same as in the Template.
-- JohnTalintyre - 16 Aug 2001 | ||||||||
| Changed: | ||||||||
| < < |
-- MikeMannix - 15 Sep 2001 | |||||||
| > > |
-- MikeMannix - 03 Dec 2001 | |||||||
| ||||||||
| ||||||||
| Line: 147 to 147 | ||||||||
|---|---|---|---|---|---|---|---|---|
| The Form Template topic name, fields and values are stored as TWikiMetaData. The order of field/value pairs in the Meta Data is the same as in the Template. | ||||||||
| Changed: | ||||||||
| < < |
-- JohnTalintyre - 16 Aug 2001 | |||||||
| > > |
-- JohnTalintyre - 16 Aug 2001 -- MikeMannix - 15 Sep 2001 | |||||||
| ||||||||
| ||||||||
| Deleted: | ||||||||
| < < |
Note: Included topic UtilTempDocNote? does not exist yet | |||||||
TWiki Forms | ||||||||
| Line: 10 to 8 | ||||||||
|---|---|---|---|---|---|---|---|---|
Overview | ||||||||
| Changed: | ||||||||
| < < |
By adding form-based input to free-form content, you can structure topics with unlimited, easily searchable categories. When forms are enabled for a web and selected in a topic, the form appears in edit mode, and the contents are rendered as a table when viewing the actual page. When editing, can switch forms, if more than one is defined, or remove forms entirely. Form input values are stored as TWikiMetaData; all data is saved. | |||||||
| > > |
By adding form-based input to free-form content, you can structure topics with unlimited, easily searchable categories. When forms are enabled for a web and selected in a topic, the form appears in edit mode, and the contents are rendered as a table when viewing the actual page. When editing, can switch forms, if more than one is defined, or remove forms entirely. Form input values are stored as TWikiMetaData; all data is saved. | |||||||
| Form Templates replace TWikiCategory Tables from the 01-Dec-2000 version of TWiki. | ||||||||
| Line: 27 to 25 | ||||||||
Importing Category Table Data | ||||||||
| Changed: | ||||||||
| < < |
On upgrading from the previous TWiki, a Form Template topic has to be built for each web that used a Category Table, recreating the fields and values from the old twikicatitems.tmpl. The replacement Form Template must be set as the first item in the WebPreferences variable =WEBFORM. If missing, pages will display, but attempting to edit results in an error message.
| |||||||
| > > |
On upgrading from the previous TWiki, a Form Template topic has to be built for each web that used a Category Table, recreating the fields and values from the old twikicatitems.tmpl. The replacement Form Template must be set as the first item in the WebPreferences variable WEBFORMS. If missing, pages will display, but attempting to edit results in an error message.
| |||||||
| The new Form Template system should work with old Category Table data with no special conversion. Data is assigned to Meta variables the first time an imported topic is edited and saved in the new system. | ||||||||
| Line: 61 to 59 | ||||||||
| ||||||||
| Changed: | ||||||||
| < < |
Example: WebFormTemplate from the TWiki.Know web | |||||||
| > > |
Example: WebForm from the TWiki.Know web | |||||||
| *Name* | *Type* | *Size* | *Values* | *Tooltip message* | | Know.TopicClassification | select | 1 | Know.NoDisclosure, | ||||||||
| Line: 106 to 104 | ||||||||
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
| Line: 147 to 145 | ||||||||
Form Template Data Storage | ||||||||
| Changed: | ||||||||
| < < |
The Form Template topic name, fields and values are stored as Meta Data. The order of field/value pairs in the Meta Data is the same as in the Template. | |||||||
| > > |
The Form Template topic name, fields and values are stored as TWikiMetaData. The order of field/value pairs in the Meta Data is the same as in the Template. | |||||||
-- JohnTalintyre - 16 Aug 2001
| ||||||||
| ||||||||
| Added: | ||||||||
| > > |
Note: Included topic UtilTempDocNote? does not exist yet | |||||||
| TOC: No TOC in "TWiki.TWikiForms" | ||||||||
| Changed: | ||||||||
| < < |
TWiki Form Templates | |||||||
| > > |
TWiki Forms | |||||||
| Form-based input in topics, with name/value pairs stored as Meta Data variables; multiple forms per web & topic | ||||||||
| Line: 148 to 150 | ||||||||
|---|---|---|---|---|---|---|---|---|
|
The Form Template topic name, fields and values are stored as Meta Data. The order of field/value pairs in the Meta Data is the same as in the Template.
-- JohnTalintyre - 16 Aug 2001 | ||||||||
| Added: | ||||||||
| > > |
| |||||||
| |||||||||||
| Line: 13 to 13 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Form Templates replace TWikiCategory Tables from the 01-Dec-2000 version of TWiki. | |||||||||||
| Changed: | |||||||||||
| < < |
Changes from the Category Table System | ||||||||||
| > > |
Main Changes from Category Tables | ||||||||||
| Form Templates more powerful, flexible replacement for the original TWikiCategoryTable. Data from existing category tables can be imported directly. | |||||||||||
| Deleted: | |||||||||||
| < < |
Main changes from TWikiCategoryTable: | ||||||||||
| |||||||||||
| Changed: | |||||||||||
| < < |
Importing Existing Category Table Data | ||||||||||
| > > |
Importing Category Table Data | ||||||||||
On upgrading from the previous TWiki, a Form Template topic has to be built for each web that used a Category Table, recreating the fields and values from the old twikicatitems.tmpl. The replacement Form Template must be set as the first item in the WebPreferences variable =WEBFORM. If missing, pages will display, but attempting to edit results in an error mes | |||||||||||