Dear All,
I would like to know if it's possible to make mandatory select for supervisor before press the "Approval" button in front portal? Which means approval will not be allowed unless selection in form is made?
I have tried using Work flow and Automation without luck, maybe someone can give me the right answer for this task?
Sorry I am kind of new for JSM.
Thanks a lot.
Mic
Community moderators have prevented the ability to post new answers.
hi @Mic Wang ,
This is not possible in the way you suggest. You can however prevent going to the approval state if a certain field (e.g. 'supervisor') is not filled.
Hello @Mic Wang ,
@Rudy Holtkamp is right, I will give you the exact mechanics behind his sentence, because I think it explains why your workflow attempts failed.
Why it fails where you put it. The Approve and Decline buttons on the portal do not run workflow validators. So a validator on the approval transition itself (the one the Approve button fires) is silently skipped, and the approval goes through with the supervisor field empty. That is the attempt that "does not work."
Where it works. Put the gate on the transition into the status that carries the approval, not on the approval transition. In the workflow editor, open the transition that moves the request from its previous status (say "Waiting for support" or "Awaiting supervisor") to your approval status, and add a validator:
The Approve button only exists once the request is in the approval status, and the request cannot enter that status until the field or form is complete. Mandatory, without touching the transition that ignores validators.
Two details that catch people:
The full pre-approval design, with the automation that attaches the form and transitions on submission, is in my reply on your earlier thread, so I will not repeat it here, this answer is the workflow half of it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.