"ben adam" <[EMAIL PROTECTED]> writes:
> This is what i have in my template:
>
> <input class="submit" name="get_merges" type="submit" value=" Get
> Merges " />
> <input class="submit" name="plot_merges" type="submit" value=" Plot
> Merges " />
I do the same thing and specifically check for a value indicating the
Submit was clicked, like:
if self.form_result.get('get_merges'):
...
if self.form_result.get('plot_merges'):
...
If a submit button is not clicked it hasn't shown up in my
form_results. I'm using the formencode valiators and tell it to allow
extra fields and not filter them, FWIW.
In my case, I'm checking for different submits like "Add" or "Delete".
I test explicitly for "Delete" and if I don't see it assume it's an
Add, so the default action -- e.g., if they fill in form info and end
it and implicitly submit with a RETURN key -- the form is treated as
an Add.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---