Select workflow conditionally

Created on 12 December 2024, 4 months ago

Problem/Motivation

I need to use different workflow conditionally. I cannot use the conditional transitions, because the initial transition needs to be different based on a value which the user has selected on the form.
One way of achieving this would be to add multiple workflow elements to the webform and disable them conditionally. I tried this, but it didn't work.

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇫🇮Finland merilainen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @merilainen
  • What "didn't work" about adding multiple elements? It's intended this module allows for multiple workflow elements on the same form, which sounds like it would solve your use case if working.

  • 🇫🇮Finland merilainen

    I have two workflows, let's call them "New order" and "Replacement order". I was hoping to activate one or the other dynamically when user has selected something on the form, for example in a select element which has the same options.
    It's possible to define the conditions that one workflow element's "State" is for example enabled when user has selected "New order" from another element, but it doesn't seem to affect anything. Whatever workflow element is higher in the webform configuration will be the active workflow.
    The module does seem to support disabling transitions in the selected workflow. But not choosing a completely different workflow depending what user has selected somewhere else in the form.

Production build 0.71.5 2024