On a Drupal 7 Webform I've added a button using a markup field like this:
<button name="get" value="" type="submit" class="primary-submit submit" id="get">
Get Address
</button>
I am directing it to a submit handler like this:
function new_webform_form_alter(&$form, &$form_state, $form_id) {
if ($form_id == 'webform_client_form_88') {
$form['submitted']['name']['get']['#submit'][]='new_webform_get_submit';
dpm($form);
}
}
I can tell the button #submit
is being changed, but the whole form is submitted instead of executing the handler code. What am I doing wrong?