![]() |
| > Home > Documentation > Latest documentation > Global config directives > FormAction |
|
FormActionDefine or override Interchange form actions with a Perl subroutine. Synopsis
ScopeThis directive is available for use globally (in the "interchange.cfg" configuration file), and locally (in the "catalog.cfg" configuration file). The global configuration affects all websites running under the Interchange instance. Each individual website's local configuration will not affect or influence other websites in any way. DescriptionThis directive allows Interchange "form actions" to be defined or overridden with a Perl subroutine. Examples of pre-defined form actions are "refresh", "return" and "submit". Interchange "form actions" are Perl subroutines that you can execute upon form submission. See the Interchange form actions page. You can trigger a form action in one of the following ways:
Successfully executed form actions must return a true value, upon which Interchange will display the page specified by the mv_nextpage form variable. If the form action returns false (zero, undef, blank etc.) then Interchange will not display anything at all. ExampleThis is a very simple form action:
If the "mv_action" is "foo" then the next page displayed will be "bar.html".
|
| Home | Legal nonsense | Privacy policy | Contact us |