[pmwiki-users] Fox form redirect
design5 at softflow.co.uk
Sat Mar 1 18:27:42 CST 2008
Saturday, March 1, 2008, 11:08:55 PM, Randy wrote:
> It sounds like there is no way to make conditional behavior based on
> the succeed / fail results.
No. Nor is it desirable. Bear in mind that Fox may process several
target pages in succession. Fox can output a success or failure
message for each page process, but must be allowed to go through
processing all pages. So redirects based on individual failures or
succeses don't make sense. Only once the whole processing is done can
Fox redirect somewhere.
I updated fox.php just now, and added a cancelredirect=PageName
option, which can be used for redirecting with the Cancel button to a
different page than with redirect=Page.
If cancelredirect is not used, and a Cancel button is clicked, the
redirect will go to thecurrent form page, thereby clearing all input
fields of previous data.
This change means that a form which is called by another page may
need to explicitely set cancelredirect to the calling page, so a
Cancel will redirect there instead of the form page.
I don't know if this is an improvement over the previous, where the
cancel redirect was the same as the redirect.
More information about the pmwiki-users