I use webform with multistep for a quiz. I want to add a "skip" button (equivalent to the submit/next button in the bottom of the form) above the form so that people can go directly to the next question without having to scroll down the page like that :
" Skip this question
My form
< Previous | Next >"
I succeeded to add an another submit button (check code below). But when I click on this button it returns to the previous step instead of going to the next step ... I don't understand why .. And I can not put it above the form.
function mytemplate_form_alter(&$form, &$form_state, $form_id) {
switch ($form_id) {
case 'webform_client_form_13':
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('skip'),
);
break;
}
}
Have you got an idea for help me ?
Thanks you for advance
PS : sorry for my bad english