Reactive web persist data for Wizard form.

Is it possible to persist data between the wizards steps?

I've done up a wizard and everything is working but when I click on "back/prev" in step2 (in the wizard steps) the data is step 1 will be gone.

So i'm wondering how do I persist the data? Must I share the same structure or?

Hello MingQuan,

Yes, it is possible to persist data between the wizards steps. There are multiple ways to do this:

  • If you have the steps in the same page / block, you can share the structure with the data between the steps. When you go back to the previous step, the data that you filled in the previous steps is still there;
  • If you have the steps in different pages / blocks, you need to pass the data between them (pass the structure between steps via input parameters or using events);
  • An alternative way is to persist the data in the database everytime you move forward or backward, but you need to fetch it everytime you enter a step.


Kind regards,

Rui Barradas

Hi,

In attachment and example of a wizard implementation in reactive.

Regards,

Marcelo