| Form Templates | Category Tables | 
|---|---|
| defined by topics | defined in a template file | 
| multiple forms per web | one category per web | 
| data saved in Meta variables | data saved as HTML | 
| [Change] form and [Add Form] contol buttons | UseCategory radio button | 
twikicatitems.tmpl defines the categories and is used in the conversion. The form template must be set as the first item in the WebPreferences variable =WEBFORM. If it's not present, view works, but edit results in an oops dialog result. If things aren't working correctly, there may be entries in data/warning.txt.
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 |
| 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... | 
Code from:
- WebFormTemplate of the TWiki.Know web:
Name: Type: Size: Values: Tooltip message: TopicClassification select 1 blah blah... OperatingSystem checkbox 3 blah blah... OsVersion text 16 blah blah... 
- TopicClassification topic:
Name: Type: Tooltip message: NoDisclosure option blah blah... PublicSupported option blah blah... PublicFAQ option blah blah... 
... can be used for force a link, at present ... format is not supported
WebTopicEditTemplate or using fieldFLD=value or for checkboxes fieldFLDcheckbox=1 in URL
WEBFORMS variable in WebPreferences is optional and defines a list of possible form templates e.g.
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.  
Addtionaly a new topic can be given a form using the formtemplate parameter in the URL.  Initial values can then be provided in the URLs or as form values.  Names being:
formtemplate parameter in the URL.
WEBFORMS variable defines alternative Form Templates that can be selected after pressing [Change] on the Edit page
| Topic TWikiForms . { | 
| Revision r1.5 - 01 Sep 2001 - 11:07 - MikeMannix? Parents: WebHome | Copyright © 2001 by the contributing authors. 
All material on this collaboration tool is the property of the contributing authors. Ideas, requests, problems regarding Lash La Rue? Send feedback. |