Conditional show of Accept, Re-assign buttons

Certified Associate Developer

Hi, 

If a user is part of 2 groups: Assistant and Manager.

Same user who submitted a task as an Assistant shouldn't be able to access next task in the flow as Manager.

Is there a way not to show/disable the accept and reassign buttons when the same user tries to claim the task?

Or can we show an error message when trying to accept?

Any help/ideas are appreciated.

Thanks,
Keerthi

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    Pass the username of the previous user into the Manager Review task.  You won't be able to disable the "accept" button, but you can do on-form checks to check whether the task's viewer is the same as the previous user, and display a validation message alerting them that they are not allowed to perform that review.

    Then they could either use the OOB "reject" button or, as a special case, you could build a custom Submit Button saying something like "send back to reviewer group", which would simply exit the task and loop immediately back to it allowing the original group assignment to take hold again regardless of the original instance's accepted status.

Reply
  • 0
    Certified Lead Developer

    Pass the username of the previous user into the Manager Review task.  You won't be able to disable the "accept" button, but you can do on-form checks to check whether the task's viewer is the same as the previous user, and display a validation message alerting them that they are not allowed to perform that review.

    Then they could either use the OOB "reject" button or, as a special case, you could build a custom Submit Button saying something like "send back to reviewer group", which would simply exit the task and loop immediately back to it allowing the original group assignment to take hold again regardless of the original instance's accepted status.

Children
No Data