Difference: AnApplicationWithWikiForm (1 vs. 2)

Revision 22004-10-18 - TWikiContributor

Line: 1 to 1
 
META TOPICPARENT name="TWikiFAQ"

FAQ:

How can I create a simple TWiki Form based application?
Line: 11 to 11
 
  1. Create a Template Topic and in Edit mode
  2. In edit mode add the TWiki Form you defined to the Template Topic
  3. Create a HTML Form with necessary fields
Changed:
<
<
  1. Define SEARCH function for listing items. See TWikiVariables#VarSEARCH
>
>
  1. Define SEARCH function for listing items. See VarSEARCH
  For more information follow the links...

Revision 12004-10-18 - TWikiContributor

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="TWikiFAQ"

FAQ:

How can I create a simple TWiki Form based application?

Answer:

  1. Create a TWiki Form and define fields (TWikiForms)
  2. Add the form in the list of Web Forms. Set the variable WEBFORMS in WebPreferences
  3. Create a Template Topic and in Edit mode
  4. In edit mode add the TWiki Form you defined to the Template Topic
  5. Create a HTML Form with necessary fields
  6. Define SEARCH function for listing items. See TWikiVariables#VarSEARCH

For more information follow the links...

The following is the code source of TWikiFAQ:

<form action="%SCRIPTURLPATH{edit}%/%WEB%/">
New FAQ topic: &nbsp; (Use a name in TWiki.WikiNotation) <br />
<input type="text" name="topic" size="32" />&nbsp;<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" regex="on" nosearch="on" nototal="on"}%

Back to: TWikiFAQ

Related Topics: UserDocumentationCategory

-- TWiki:Main.MiyokoTakushima - 18 Oct 2004

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 1999-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding URCS? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.AnApplicationWithWikiForm.