Tags:
create new tag
view all tags

Question

I am wondering if there are any detailed instructions on how to create new topics from forms just like the one used to create these support questions. This is pretty close to what I want but am not exactly sure how to make it work, where you have one form and it creates title, free text and table. I am studying the form that is on this page, but don't quite get it. I also am wondering if there is a way to put some of the info from the html form into the web form that would be loaded with the topic template?

Environment

TWiki version: TWikiRelease04x01x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version: 5.6
Client OS: OS 10.4
Web Browser: Firefox
Categories: Forms

-- XochipalaValdez - 26 Mar 2007

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

See TWikiTemplates for the basic instructions of how to create topics using an html form.

To populate the TWikiForms fields with input from the html form, simply define an html element with the name attribute set to the name of the field you want to fill in, as in the following examples:

<input type="text" name="LeadPerson" size="30" value="%WIKIUSERNAME%" />
<input type="hidden" name="EntryDate" value="%DATE%" />

Note: If the form field name has a space in it, simply remove these in naming the html form element. For example, the target field for the second example above could be named "EntryDate" or "Entry Date".

-- LynnwoodBrown - 27 Mar 2007

Change status to:
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2007-03-27 - LynnwoodBrown
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.