Make field mandatory before Task can be closed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2018 12:32 PM
Hello,
I have a variable called "Workflow Progression" that is only on a certain task that fires(UAT Testing Task) from the workflow at a certain point. The purpose of the field/variable is to ask what the workflow should do next: Move to Production, Move to RollBack or Close the request(closed skipped). This variable only appears on the UAT Task. I need to figure out how to get the field to only be Mandatory when the "Close Task" ui action button is clicked. We assign this task to different users so we need to open an update it without this field being mandatory all the time.
function onSubmit() {
if(g_form.getValue('state') == '3')
{
g_form.setMandatory('variables.workflow_progression', true);
return false;
}
}
This is what I came up with. Any help on this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2018 02:34 PM