Wizard built using the PopupForm



In this demo a Wizard is built using the PopupForm helper. We're not using the default Ok and Cancel buttons instead a submit button is placed on the bottom center of the form.
Stepping forward is done by submitting the form, the successful submit will redirect to another action which will return a view (html), when the popupform receives html/string it replaces its content with that html.
Stepping back is performed by submitting a separate form to the needed step, the form uses method get. (The popup form will handle any form that is being submitted inside of it, and make it an ajax request).




Comments