
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2012 07:01 AM
I need to make a catalog item variable mandatory on only one task. I do not need it to be mandatory when submitted, I just need it to be mandatory on one of the tasks that get generated by the workflow.
Thanks for the help.
Jason
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-09-2012 07:33 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2012 09:11 AM
Really and truly the only time it needs to be mandatory is on close. I don't think it matters if they do updates or whatever, but if they close that field needs to be populated....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2012 01:52 PM
You can grab a catalog variable from the catalog task. Just add variables in front of the variable name like so:
var test= g_form.getValue('variables.u_test');

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2012 02:49 PM
OK got that part. Now how do I check for a close task action? As of now I get the pop up on close or update, and I just want it on a close.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2012 03:05 PM
make your client script onChange of status
if the newValue of status is Closed then check the variable field for contents. If its blank put the status back to open and pop the message. If its not blank skip the popup.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-06-2012 07:03 AM
This is what I have and I can't get it to work. I don't see what I'm doing wrong. I want it to check the field when the state goes to closed complete (3)....
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue == '') {
return;
}
//If New Machine field is empty, alert user
var task_state = g_form.getValue('state');
if ((task_state == '3')) {
var lease_new_comp=g_form.getValue('variables.lease_new_computer');
if (lease_new_comp == '') {
alert('New Machine Name Is Mandatory');
return false;
}
}
}