public function actionsFor($step)
    {
        // Create default multi step actions (next, prev), and merge with extra actions, if any
        $actions = FieldList::create();

        // If the form is at final step, create a submit button to perform final actions
        // The last step doesn't have a next button, so add that action to any step that isn't the final one
        if ($step->isFinalStep()) {
            $actions->push(FormAction::create('finish', $step->getSubmitText()));
        } else {
            $actions->push(FormAction::create('next', $step->getNextText()));
        }

        // If there is a previous step defined, add the back button
        if ($step->getPreviousStep() && $step->canGoBack()) {
            // If there is a next step, insert the action before the next action
            if ($step->getNextStep()) {
                $actions->insertBefore($prev = FormAction::create('prev', $step->getPrevText()), 'action_next');
            // Assume that this is the last step, insert the action before the finish action
            } else {
                $actions->insertBefore($prev = FormAction::create('prev', $step->getPrevText()), 'action_finish');
            }
            //remove browser validation from prev action
            $prev->setAttribute("formnovalidate", "formnovalidate");
        }

        // Merge any extra action fields defined on the step
        $actions->merge($step->getExtraActions());

        return $actions;
    }