Since you are submitting to the same controller I don't see a problem,
onvalidation will run (or not if there are form.errors) in both cases.


On Nov 29, 11:33 am, António Ramos <[email protected]> wrote:
> Hello
> i want to use a form and want to use the onvalidation to call a function.
> My question is ,
> Is the submit button the only way to trigger the onvalidation event ?
> I ask this because i want 2 buttons, the first submits with var=1 and the
> second submit with var=2
>
> How can i use this 2 buttons instead of submit and still trigger
> onvalidation?
>
> Best regards
> António

Reply via email to