%META:TOPICINFO{author="TWikiContributor" date="1276662669" format="1.1" version="6"}%
%META:TOPICPARENT{name="TWikiFAQ"}%
---++ FAQ:

How can I create a simple [[TWikiForms][TWiki Form]] based application?

---++ Answer:

   1 Create a TWiki Form and define fields (see TWikiForms for details)
   1 Add the form in the list of Web Forms. Set the WEBFORMS setting in WebPreferences
   1 Create a Template Topic
   1 In edit mode add the [[TWikiForms][TWiki Form]] you defined to the Template Topic using the "Add Form" button
   1 Create a HTML Form with necessary fields
   1 Define =SEARCH= function for listing items (see VarSEARCH and FormattedSearch for details)

For more information follow the links...

The following is the code source of TWikiFAQ:

<verbatim>
<form action="%SCRIPTURLPATH{edit}%/%WEB%/">
New FAQ topic: &nbsp; (Use a name in %SYSTEMWEB%.WikiNotation) <br />
<input type="text" name="topic" size="32" class="twikiInputField" />
<input type="submit" value="Create Topic" class="twikiSubmit" />
<input type="hidden" name="onlywikiname" value="on" />
<input type="hidden" name="templatetopic" value="TWikiFaqTemplate" />
<input type="hidden" name="topicparent" value="%TOPIC%" />
<br />
</form>
</verbatim>

----

And the =SEARCH= function:
<verbatim>
%SEARCH{ "Back to\:__ TWikiFAQ" casesensitive="on" type="regex" nosearch="on" nototal="on"}%
</verbatim>

__Back to:__ TWikiFAQ

__Related Topics:__ UserDocumentationCategory

-- __Contributors:__ TWiki:Main.MiyokoTakushima - 2004-10-18
