how to pass model values to partialview form surfacecontroller post action
I'm extending umbraco site using locally declared surfacecontrollers and forms. on submit form I have some server side validations and return to form with errors.
I'm rendering view using macro using code below,
Requirement - Enter email do a validation on controller and then load view with different form then step 2 enter rest of the details and submit again. how do I pass entered values back to form rather than passing empty model?
I tried returrn CurrentUmbracoPage() and rerturn RedirectToCurrentUmbracoPage() and TemData but failed to load values to input fields .
I can pass error using TempData but I cannot pass entered form values back.
any idea how to sort this ?
I recommend checking out this blog on creating multi-step forms using a SurfaceController. Although it’s an older post, it provides valuable insight into implementing multi-step forms in Umbraco and can help you understand the overall concept.
how to pass model values to partialview form surfacecontroller post action
I'm extending umbraco site using locally declared surfacecontrollers and forms. on submit form I have some server side validations and return to form with errors. I'm rendering view using macro using code below,
Requirement - Enter email do a validation on controller and then load view with different form then step 2 enter rest of the details and submit again. how do I pass entered values back to form rather than passing empty model?
I tried returrn CurrentUmbracoPage() and rerturn RedirectToCurrentUmbracoPage() and TemData but failed to load values to input fields . I can pass error using TempData but I cannot pass entered form values back. any idea how to sort this ?
Hi Pathini,
I recommend checking out this blog on creating multi-step forms using a SurfaceController. Although it’s an older post, it provides valuable insight into implementing multi-step forms in Umbraco and can help you understand the overall concept.
There is another in forum itself checkout this also - Multi-step-form-implementation
For enhanced UI transitions, you might consider using JavaScript plugins designed for multi-step forms. Here are some lightweight options:
is working on a reply...