Jeff Coughlin wrote:
I've extended the dmNews in farcry to have a custom page of additional form fields. So far it works great. I was wondering if there was a way to run my own validation on an action page.

Yes there is. Each PLP step is basically a conditional statement -- it doesn't automatically go onto the next step unless you set the appropriate variable.


Have a look at:
PLPs Demystified
http://farcry.daemon.com.au/index.cfm?objectid=4DAC2D01-D0B7-4CD6-F96528F46FE63ACF

And also:
Conditional PLPS
http://farcry.daemon.com.au/index.cfm?objectid=7FD51BC6-D0B7-4CD6-F9C0D0EEDCAC8DBB

Currently I need to add a couple checkboxes. Because the browser wont send anything to the action page I'm not sure if the plp will take care of it for me and set the boolean to false if not checked (I'm guessing no).

The browser does a form post for each change in step (or attempt to change step), So you should be able to do this. We also use the brillant qForms library for client side validation:
http://www.pengoworks.com/index.cfm?action=get:qforms


Even if there is an easy fix for the above immediate need, I know I'll still run into situations where I need to run custom logic on the action page (like maybe cross-referencing form data against a query and spitting out new info to the variables... or spitting out custom errors to the user and asking them to fix the error (something that a simple js on the form page can't fix alone)). Is this possible?

Certainly is. Read through the PLP stuff on the site at the moment. Then feel free to come back with any additional questions.


-- geoff
http://www.daemon.com.au/

---
You are currently subscribed to farcry-dev as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to