Skip to content

Documentation - How to skip a step? #9

@patrickkusebauch

Description

@patrickkusebauch

I think it is self-explanatory. I am looking for a way to skip a step based on the values from a previous step.

I tried this naive solution, but to no avail:

            protected function createStep2(): Form
            {
                $values = $this->getValues();
                if(isset($values['seasonDesc']) && $values['seasonDesc'] === 'personal') {
                    $this->setStep($this->getCurrentStep() + 1);
                    return $this->create(); //Since I have to return a Form
                }
            }

However this results in Component 'step3' already has a parent

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions