im trying about a week to do multistep form usin form api in drupal 6 and in the step 2 there is 2 upload fields and then its should proceed until step 5, after user fill the step 1 he can skip the whole form and submit the data... im trying to do it and im not success, i glue some pices of code and its not work , and multiform plugin is kinda buggy anyone did something like that and can share the code or just explain me what functions i should use and how?
相关问题
- Laravel Option Select - Default Issue
- HTML form is not sending $_POST values
- How to use Control.FromHandle?
- Xamarin. The name 'authorEntry does not exist
- HTML <form> tag causing Rails form to submit
相关文章
- Show a different value from an input that what wil
- How can I detect/watch “dirty-status” of an angula
- Why form submit opens new window/tab?
- Archive option greyed out in xcode 4.5.2
- Setting Angular 2 FormArray value in ReactiveForm?
- Safari xhr drag'n'drop file upload seems t
- Rails: Using form fields that are unassociated wit
- How to get the “value” of a FilteringSelect <se
Try multiform, but be careful as it is still in dev state.
If you want to do it on your own, have a storage variable called step in the form which represents the current step, and increment it everytime this function is called.
Use a switch case to render the form elements for the current step. If it is not last step dispaly next button, else submit button. Move the values from
$form_state['values'] to $form_state['storage']
In the submit function, perform the database insertion if it is the last step else just return.