react-stepzilla icon indicating copy to clipboard operation
react-stepzilla copied to clipboard

Conditional Navigation of the Step Components (Dynamic Steps)

Open nidhijohar opened this issue 6 years ago • 7 comments

Have 16 steps or pages, need to show only a dynamic number of steps based on user input on each page. [eg: like survey forms].

nidhijohar avatar Sep 24 '18 07:09 nidhijohar

About to cross this bridge myself. Looks like there is a jumpToStep() utility method, but you lose validation.

Redux is too heavy for what Im doing, else I'd be tempted to just go with redux form's Wizard form https://redux-form.com/6.0.0-alpha.6/examples/wizard/

tmartin2089 avatar Nov 19 '18 22:11 tmartin2089

This would be a great feature.

Have you tried using the jumpToStep() utility and a dynamic list of steps that update? It should “just work” as StepZilla works with an array of steps. But chances are you will lose HoC validation as it’s built to be explicitly tied to step index (not too happy about this hard coupling, but will have to do for now)

Let me know how you went? I would love to see a PR if you needed to update core code to support it.

newbreedofgeek avatar Jan 25 '19 06:01 newbreedofgeek

I'll keep this open... it would require an enhancement to make sure StepZilla support dynamic steps

newbreedofgeek avatar Jan 28 '19 23:01 newbreedofgeek

Is it possible to dynamically add steps? I don't want to load all steps upfront (and is not possible).

What I'm after is the ability to insert more step components during the process from eg: remote data

mengqing avatar May 28 '19 00:05 mengqing

How can I add steps dynamically?

saeedvakili1 avatar Jan 07 '20 07:01 saeedvakili1

how can i display an alert on every page

austinStan avatar Feb 02 '20 11:02 austinStan

👍 This would be a great enhancement

isaacpalka avatar Mar 11 '22 16:03 isaacpalka