On 5/17/07, noskule <[EMAIL PROTECTED]> wrote: > hi dan > Is there a way/example for a cancel button? The cancel button should not > touch the datapage but use "nextpage" to return to the basepage. > > grz nos
Not really, but you might be able to get that effect if you did something like the following (not tested) (:zap if="equal 'button' 'Cancel' ? warn='action canceled' ":) (:zap warn='':) ... rest of form (:input submit button value='Do Action':) (:input submit button value='Cancel':) The idea is the first thing the form checks is which button you push. If Cancel, you give warn an message which will cause the form to abort. Otherwise, warn (if = '') is ignored, allowing the form to be processed. A cancel button would be nice, but ZAP processes all form inputs in the order they appear, so unless you put it at the top of your form, it wouldn't do much good. Cheers, Dan PS. Not to say it couldn't be done... A special check for the abort value before any other form processing might be all it takes... Hmmm... _______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
