Skip to content

ComponentFlow: conditional rendering of result of previous step #462

@Drevsh

Description

@Drevsh

I have q question regarding conditional rendering of a previous step result and whether something like this is possible.

I want to display MulitItemSelection/StringInput based a on SingleItemSelection executed in a the same component flow.
The idea I had is that a parse a selection of some services I have (via a "parse" command). After that I have another command ("configure") which shows the user a SingleItemSelection with all the services which have been parsed. The user can select a service which he wants to configure. After the selection multiple questions are asked how the service should be configured. Some of the questions/configuration need to be based on the parsed service definition. For example some services can be backed up while others can't and only for that services a ConfirmationInput should be shown. While this can be done via .next(ctx -> void) I'm also in need to access/retrieve actual data from the service selected in the selection. (i.e. to enabled/edit certain arguments)

Is anything like this supported in the ComponentFlowBuilder? Or would I need to create a sequence of normal component inputs and extract the result item before creating the next step?

I hope the image helps:
ComponentFlow

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