| netfrag.org . TWiki . TWikiForms |
| 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.
| 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... |
| Name: | Type: | Size: | Values: | Tooltip message: |
|---|---|---|---|---|
| TopicClassification? | select | 1 | blah blah... | |
| OperatingSystem? | checkbox | 3 | blah blah... | |
| OsVersion? | text | 16 | blah blah... |
| 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.
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] button on the Edit page
----- Revision r1.4 - 01 Sep 2001 - 05:55 - MikeMannix?
|