I currently have a 3 step wizard.
Step 1: takes some details I need and has a dropdown where you select the number of packages
Step 2:
depending on how many packages you selected this step shows you the required number of editors for packages
Step 3: confirm your order
I have been told I need to combine steps 1 & 2 but I am at a loss on how to do this with mvc and razor, because its simply a VIEW on your model…
What is the best way to do this?
would it be a case of submitting the page back to itself with an action dedicated specifying how many packages are required, or could this be done with ajax?
Thanks
My approach would be as follows:
Create a partial for the package row (PackageRow.cshtml)
Load your package rows into the form via ajax upon the user selecting the number of rows
Add your partials to the form via your controller
Save the data