I thought I understood everything about this topic. I even remember I did a test last week, but now nothing works. 😟
I added 2 submit buttons to my form, say Save and Draft.
I named them 'my_button' with different id and text.
I read this post where Max wrote that it is possible to check the submit button value.
But when I do that there's no $form->data['my_button'] value.
I checked in the debugger, I added a print_r($form->data) and echo $form->data['my_button'] to the custom server side validation but the submit button value is always missing.
Even firebug doesn't report a my_button value in the Post data window.
What could be wrong with my form?
thank you
maxx
I added 2 submit buttons to my form, say Save and Draft.
I named them 'my_button' with different id and text.
I read this post where Max wrote that it is possible to check the submit button value.
But when I do that there's no $form->data['my_button'] value.
I checked in the debugger, I added a print_r($form->data) and echo $form->data['my_button'] to the custom server side validation but the submit button value is always missing.
Even firebug doesn't report a my_button value in the Post data window.
What could be wrong with my form?
thank you
maxx