Hi, I have a form with 3 submit buttons, defined as
$form['submit1'] = array('#type' => 'submit',..) etc.
However, when I enter the form id to be ajaxified, nothing happens. What happens is that even with 1 button, if it's called ['submit1'], the form is not ajaxified.
I don't know if my case (3 submit buttons) is that wrong, but if I have a button with #type => submit, it shouldn't matter that it's called $form['something'] or?
Would be nice to have both cases fixed though :)
Thanks!
Martin
Comments
Comment #1
brendoncrawford commentedMartin,
The problem is that even a preview or delete button will have '#type' => 'submit', so Ajax.module depends on the name being 'submit'. One possible workaround is that I allow a developer to set a form option to specify which button should be used as the submitter. Something like this:
Would something like that take care of your issue?
Comment #2
arski commentedHi Brendon,
I suppose one could then set this setting to any button within a form, right? Would be really amazing!
Thanks in advance :)
Martin
Comment #3
brendoncrawford commentedArski,
This has been fixed in 6.x-1.x-dev. The exact usage is as follows:
Please allow up to 12 hours for the 6.x-1.x-dev package to update.
Comment #4
brendoncrawford commented