Line: 1 to 1 | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
Line: 12 to 12 | ||||||||||
You can search for topics with specific form data using the %SEARCH% variable - see TWikiVariables. | ||||||||||
Changed: | ||||||||||
< < | Goodby to TWikiCategoryTables | |||||||||
> > | TWikiCategoryTables Are History | |||||||||
Changed: | ||||||||||
< < | This is a more general replacement for the TWikiCategoryTable capability, in particular Forms are defined by special topics, where as categories were defineind using special templates. | |||||||||
> > | Form Templates more powerful, flexible replacement for the original TWikiCategoryTable. | |||||||||
Changes from the Category Table System | ||||||||||
Changed: | ||||||||||
< < | Main changes from TWikiCategoryTable: The templates for category view/edit have been dropped.and render to HTML on viewing | |||||||||
> > | Main changes from TWikiCategoryTable: The templates for category view/edit have been dropped, and the forma renders to HTML on viewing. | |||||||||
| ||||||||||
Line: 43 to 42 | ||||||||||
| ||||||||||
Changed: | ||||||||||
< < |
| |||||||||
> > |
| |||||||||
| ||||||||||
Changed: | ||||||||||
< < |
| |||||||||
> > |
| |||||||||
Defining a Form Template | ||||||||||
Changed: | ||||||||||
< < | Form templates are defined by topics, one topic per form template. A form template topic has descriptive text mixed with the form template definition in the form of a TWiki table. | |||||||||
> > | A Form Template is simply a page containing your form, defined in a table where each row is one form field. | |||||||||
Changed: | ||||||||||
< < | Examples | |||||||||
> > |
Example: Form Template| *Name:* | *Type:* | *Size:* | *Values:* | *Tooltip message:* | | TopClass | select | 1 | Select one..., Private, Public | must fill | | Target | checkbox+buttons | 3 | 1, No.2, No.3 | Select OS | | Version | text | 16 | | OS version | | |||||||||
Defining a Form in One Topic | ||||||||||
Line: 71 to 83 | ||||||||||
| ||||||||||
Changed: | ||||||||||
< < | Above Example: | |||||||||
> > | Code from: | |||||||||
| ||||||||||
Line: 84 to 97 | ||||||||||
| ||||||||||
Added: | ||||||||||
> > | ||||||||||
Changed: | ||||||||||
< < | Notes | |||||||||
> > | Various Implementation Notes | |||||||||
| ||||||||||
Line: 94 to 108 | ||||||||||
| ||||||||||
Changed: | ||||||||||
< < | SpecificationEnabling Forms for a Web | |||||||||
> > | Enabling Forms by Web | |||||||||
Changed: | ||||||||||
< < | By default topics can be edited in free form. A form can be added to a topic to give it more structure. Forms are enabled on a per web basis.
The WEBFORMS variable in WebPreferences is optional and defines a list of possible form templates e.g. | |||||||||
> > | Forms are enabled on a per web basis. The WEBFORMS variable in WebPreferences is optional and defines a list of possible form templates e.g. | |||||||||
| ||||||||||
Changed: | ||||||||||
< < | With this present an extra button is added to the edit view. If the topic doesn't have a form an Add Form button appears at the end of the topic. If a form is present a Change button appears in the top row of the form to the right of the form name. The buttons leads to a screen that enables no form to be selected of one of those specified by WEBFORMS . | |||||||||
> > | With WEBFORMS enabled, an extra button is added to the edit view. If the topic doesn't have a form an [Add Form] button appears at the end of the topic. If a form is present, a [Change] button appears in the top row of the form. The buttons lead to a screen that enables no form to be selected or one of those specified by WEBFORMS . | |||||||||
A default form template (i.e. new topics get this default form) can be provided by creating the WebTopicEditTemplate topic in a Web and adding a form to it. Initial form values can be set here. | ||||||||||
Line: 118 to 129 | ||||||||||
Setting Up Multiple Form Options | ||||||||||
Changed: | ||||||||||
< < |
| |||||||||
> > |
| |||||||||
| ||||||||||
Deleted: | ||||||||||
< < |
| |||||||||
|