You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to have multiple SubmitButtons that I need to distinguish on the server side! If they have a name attribute, their values get send in the POST request. But validation strips their values from the resulting dictionary.
Since I would like to use TurboGears @validate decorator, I would like to have some kind of trick to include the buttons in the validated data!
To reproduce the behaviour, consider the following form definition:
I need to have multiple SubmitButtons that I need to distinguish on the server side! If they have a
name
attribute, their values get send in the POST request. But validation strips their values from the resulting dictionary.Since I would like to use TurboGears
@validate
decorator, I would like to have some kind of trick to include the buttons in the validated data!To reproduce the behaviour, consider the following form definition:
If I just try it in a IPython shell, I just get:
where I would like to have at least the name of the pressed button included.
Is there any way to achieve that?
The text was updated successfully, but these errors were encountered: