- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-18-2017 10:07 AM
I have a catalog item and there are 3 variables which will be visible and mandatory after the submit of the request. The person who is going to work on the task, has to fill the values in it .
I m using the below script on load and made it as "Applies on Requested Items/Tasks" and on "Catalog view". The questions appear as mandatory after submit of the request with this script. i m not able to save the RITM without entering any values for these variables. But if i close the task, the RITM is getting closed..
How to handle this scenario
var isAdmin = g_user.hasRole('admin');
var isCatalogMaster = g_user.hasRole('catalog_master');
if (isAdmin || isCatalogMaster) {
// alert('Current user is an admin');
//g_form.setVisible('current_priority', true);
g_form.setMandatory('quality_standards_outcome', true);
g_form.setMandatory('performance_standards_outcome', true);
g_form.setMandatory('security_standards_outcome', true);
}
else
{
g_form.setMandatory('quality_standards_outcome', false);
g_form.setMandatory('performance_standards_outcome', false);
g_form.setMandatory('security_standards_outcome', false);
}
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-18-2017 10:42 AM
Hi Kailash,
There is a column Global, not visible on form.
Add it to the list view and mark these variables global.
They are important on the catalog task, because an engineer would look at task and not the RITM, while fulfilling a request
Please mark this response as correct or helpful if it assisted you with your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-18-2017 10:11 AM
User shouldn't be able to close the task.
Can you put some alerts. And then try to close the task.
Also make sure, these variables are there on your task forms.
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-18-2017 10:19 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-18-2017 10:20 AM
Please add them to tasks as well. You can do tht by making variable global or add them from the workflow.
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-18-2017 10:24 AM
Interesting.. But usually when we add variables to Catalog item, it will be available on RITM and not on the tasks.. Right? Is there a way to variables to Catalog Item Task?