Thanks for the clarification. That solution won't work for us. We only
redirect on form success, not on form error. form errors are handled
within that request. redirecting to a form page with GET would be a pain,
because we'd have to encode the entire form submission into a GET string
and then repopulate it.
Unfortunately, Ajax isn't an option. Some of our simpler user-side forms
use ajax, but we have a handful of large complex forms on the "site admin"
tool. that's what I'm prepping for launch now. They largely have
intricately chained logic ( not basic form field validation ) , so we'd
either have to build out a whole framework to handle them within JS, or
switch to our backend to be rendering form partials.
>
anyways, we generally have things setup like this:
form view = /path/to/form
submit = POST to /path/to/form/submit
if invalid :
return re-render form
elif valid:
process form
return redirect to /path/to/form#success
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/groups/opt_out.