Making Gravityflow assignee conditional to who completed the previous step

Hi,

I know this isn’t possible by default, I have already noted a feature request for this.

But maybe somebody has a temporary workaround for this.

We want to setup a workflow where:

One user completes a user input step (assigned to role as we don’t know which of the users will complete it)

Based on that fact:

Any of the other remaining users is required to approve.

In

other words: the user who completed the input step is not allowed to also approve.

Any suggestions?

Hi Andor,

You will need to use a couple of filters and custom code to accomplish this.

First step, is to add a hidden field to the form that will allow you to capture the user ID of the user completing the User Input Step with the gravityflow_step_complete filter.

Second step, you could use either of the filters below to block or remove that user from the approval step:

gravityflow_step_assignees

gravityflow_validation_approval

Morning Chris,

Thanks for that, may need to dust off (de-rust) my PHP skills a bit to see if we can get this working.
I think the assignee filter may be a better fit as that way you could also achieve:

  • assign step to who completed the previous step
    type scenario’s as well with roughly the same code.

I think if Gravityflow would support this natively, a lot of very powerful scenario’s become possible.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.