- 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 03:57 AM
Hi Bhaskar,
Can you please try "g_form.setVariablesReadOnly(true)" in onLoad client and see if that works.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2017 04:01 AM
Hi Chirag,
I want to set read-only the variables if item: "Employee Requirements" and Assignment group is not "NAR CIB Onboarding" only.
Could you please help!
Thanks & Regards,
Bhaskar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2017 04:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-13-2022 09:07 AM
thank you so much
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2017 04:48 AM
Hi Bhaskar Reddy
As per you requirement : I would like to know where do you have assignment group field is present.
To make all the variables read only for particular item write the catalog client script for that particular.
Here is the script:
function onLoad() {
$(variable_map).select("item").each(function (elmt){
try {
g_form.setDisabled('variables.' + elmt.getAttribute('qname'),true);
} catch (err) {
}
});
}
Hit correct/helpful based on impact.
Regards
Ajay