FAQ:
How can I create a simple TWiki Form based application?Answer:
- Create a TWiki Form and define fields (see TWiki Forms for details)
- Add the form in the list of Web Forms. Set the variable WEBFORMS in Web Preferences
- Create a Template Topic
- In edit mode add the TWiki Form you defined to the Template Topic using the "Add Form" button
- Create a HTML Form with necessary fields
- Define
SEARCHfunction for listing items (see Var SEARCH for details)
<form action="%SCRIPTURLPATH{edit}%/%WEB%/">
New FAQ topic: (Use a name in TWiki.WikiNotation) <br />
<input type="text" name="topic" size="32" /> <input type="submit" class="twikiSubmit" value="Create Topic" />
<input type="hidden" name="onlywikiname" value="on" />
<input type="hidden" name="templatetopic" value="TWikiFaqTemplate" />
<input type="hidden" name="topicparent" value="%TOPIC%" />
<br />
</form>
And the
SEARCH function:
%SEARCH{ "Back to\:__ TWikiFAQ" casesensitive="on" type="regex" nosearch="on" nototal="on"}%
Back to: TWiki FAQ
Related Topics: User Documentation Category
-- Contributors: TWiki:Main.MiyokoTakushima - 18 Oct 2004
| Topic AnApplicationWithWikiForm . { Edit | Attach | Backlinks: Web All webs | Printable | History: r4 < r3 < r2 < r1 More } |