- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2017 03:52 AM
Hi All,
I want to set all the variables (ex: IT Onboarding Ticket etc..) read-only only on the RITM (not on Catalog Item) if the item: "Employee Requirements" and Assignment group is not "NAR CIB Onboarding" (please see below snippet)
Could you please help me!
Thanks & Regards,
Bhaskar
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2017 04:16 AM
Hi Bhaskar,
If you want to restrict this behavior only for one item,you can write the above script on Employee Requirements item in Catalog client script instead of Requested Items Table and you can set a condition as
function onLoad() {
if(assignment_group!='NAR CIB Onboarding')
{
g_form.setVariablesReadOnly(true);
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2017 04:51 AM
Hi Ajay,
DOM manipulation will not work if they use this catalog item in service portal or the chances are also high when they upgrade the instance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2017 04:52 AM
Hello,
You May use a Cataloge client script to make all of them read only. Make sure that you run the client script only on Requested ITEM/ Task
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2017 04:58 AM
You have to write an on load client script on sc_req_item table.
function onLoad() {
//Type appropriate comment here, and begin script below
if(g_form.getValue('cat_item')=='sys_id_of_catalog_item' && g_form.getValue('assignment_group') !='sys_id_of_assignment_group'){
g_form.setVariablesReadOnly(true);
}
}
Write down the appropriate sys_id in place of bold text
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-04-2024 01:23 AM
Hello Bhaskar ,
Here i have attached one example related to one incident form . please follow this
Thanks,
D Manohar Reddy.