Skip to content

Commit

Permalink
Item1458: Don't allow save from get
Browse files Browse the repository at this point in the history
Document the requirement and the possibility to save without editing first in DataForms


git-svn-id: http://svn.foswiki.org/branches/Release01x00@3531 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
KennethLavrsen authored and KennethLavrsen committed Apr 19, 2009
1 parent 6c3595d commit 1533f98
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions core/data/System/DataForms.txt
Expand Up @@ -101,6 +101,14 @@ Forms have to be enabled for each individual web. The ==WEBFORMS== setting in We
<input type="submit" class="foswikiSubmit" value="Create" />
</form>
</verbatim>
* *%X% Note:* You can create a topic in one step, without going through the edit screen. To do that, specify the =save= script instead of the =edit= script in the form action. When you specify the =save= script you must to use the "post" method. Example:
<verbatim>
<form name="newtopic" action="%SCRIPTURLPATH{"save"}%/%WEB%/" method="post">
.....
</form>
</verbatim>
* %H% The =edit= and =save= scripts understand many more parameters, see CommandAndCGIScripts#edit and CommandAndCGIScripts#save for details.

* *%T% Tip:* For Wiki Applications you can [[TemplateTopics#AutomaticallyGeneratedTopicname][automatically generate unique topicnames]].

* *%X% Note:* Initial values will *not* be set in the form of a new topic if you _only_ use the formtemplate parameter.
Expand Down

0 comments on commit 1533f98

Please sign in to comment.