Styling a Webform is more or less like styling any other ordinary HTML form. Often you would like to change the style of the submit button and replace it with an image via code in your Drupal website. Although this is extremely easy it might cause the button to stop working, forcing it to reload and fail to show the confirmation message.
If you use multiple submit button in Drupal from and add ajax call to submit button then you ajax submit button will execute form default validate and submit function. To prevent it from calling those default function you just need to do two following steps.
1) rename my validation function from "myformname_validate" to "myformname_do_validate". This caused my validate function to not be called during the ajax request.
2) attach the "myformname_do_validate" function to my submit button like so:
Sample code in your .module file for Drupal 7 as follow :-
This tutorial will help you to know how you can create custom search page in drupal 7 easily. It will explain you with code snippet to explain each part the process you need.
1. Create menu items in your hook_menu().
Multiple step form which consists of multiple steps or pages is useful sometimes. It allows you to create a form workflow and helps to make your web site user-friendly and flexible. For example, you can make different contents on next pages based on user inputs from previous pages.
The key things to make a form multiple pages are setting $form_state[‘rebuild’] and $form_state[‘storage’] variables in a submit function.