Skip to content

Commit

Permalink
Item985: updating documentation
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk/FormPlugin@2446 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
ArthurClemens authored and ArthurClemens committed Feb 11, 2009
1 parent 6496c05 commit c020d4c
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 8 deletions.
Binary file added .DS_Store
Binary file not shown.
Binary file added data/.DS_Store
Binary file not shown.
18 changes: 11 additions & 7 deletions data/System/FormPlugin.txt
Expand Up @@ -330,6 +330,7 @@ With parameter =dateformat= you may use these date specifiers:
%Y - year including the century ( ex. 1979 )
%% - a literal % character
</verbatim>
For example, to get the date formatted as "2009-01-31", specify: =dateformat="%Y-%m-%d"=.


---++ Form processing
Expand All @@ -341,16 +342,19 @@ A !FormPlugin form is first processed before it is sent to its action target. Pr


---+++ Special arguments for controlling the processing
There are several special arguments which can be used to control the processing of the form data
| *argument name* | *default* | *meaning* |
| fp_noredirct | 0 | By setting true (1) here, the FormPlugin is not going to redirect you after failing validations or %BR% even on successful submits. Please read [[Foswiki:Tasks.Item985]] |
There is one special argument that can be used to control the processing of the form data.

%TABLE{databg="#ffffff"}%
| *Argument name* | *Default value* | *Description* |
| fp_noredirects | 0 | By setting this to true (1), !FormPlugin will not redirect after submitting a form (after validation failure or success). |
%BR%
Example: This would force the FormPlugin to skip the redirects

To skip redirects, use:
<verbatim>
%FORMELEMENT{
name="fp_noredirct"
name="fp_noredirects"
type="hidden"
default="1"
value="1"
}%
</verbatim>

Expand Down Expand Up @@ -508,7 +512,7 @@ Plugin settings are stored as preferences variables. To reference a plugin setti

---++ Plugin Info

| Copyright: | &copy; Arthur Clemens, Sven Dowideit, [[Main.EugenMayer][Eugen Mayer]] |
| Copyright: | &copy; Arthur Clemens, Sven Dowideit, [[Foswiki:Main.EugenMayer][Eugen Mayer]] |
| Other authors: | =Validate.pm=, originally =CGI::Validate= by Zenin <zenin@archive.rhps.org> aka Byron Brummer <byron@omix.com>. Copyright (c) 1997,1998 OMIX, Inc. All rights reserved. Use is granted under the same terms of Perl. |
| Plugin Version: | 29 Jan 2009 (V1.4.5) |
| Change History: | <!-- versions below in reverse order -->&nbsp; |
Expand Down
Binary file added lib/.DS_Store
Binary file not shown.
Binary file added lib/Foswiki/.DS_Store
Binary file not shown.
Binary file added lib/Foswiki/Plugins/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion lib/Foswiki/Plugins/FormPlugin.pm
Expand Up @@ -1653,7 +1653,7 @@ sub _urlEncode {

=pod
Evaluates if the FormPlugin should redirect if needed. True means, it is allowed to redirect, false denys any redirects
Evaluates if the FormPlugin should redirect if needed. If true: it is allowed to redirect; if false: deny any redirect.
=cut
sub _doRedirects {
Expand Down
Binary file added pub/System/.DS_Store
Binary file not shown.

0 comments on commit c020d4c

Please sign in to comment.