Order Guide: Item Variable Assignment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-03-2018 03:46 AM
Hi All,
I have a reference field in a form named "Requested For" which will be filled.
I have other fields like email, manager, department,etc too which wont be visible in the form.
But, during catalog task generation, it will be available under "Variables" Section.
I am using "Item Variable Assignment" feature to set these values.
How to make it filled based on the Requested For value in Catalog Task only using "Item Variable Assignment" Feature>
Thanks & Regards,
Ram Prakash
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-03-2018 04:06 AM
Hi Ram,
Follow below steps:
1. Write catalog UI policy and hide all the variables which you doesn't want to show on catalog form and requested item.
Mark check box in UI policy :
2. Write an on change client script on Requested for field.
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
//Type appropriate comment here, and begin script below
var a = g_form.getReference('user',setEmail);
}
function setEmail(a)
{
g_form.setValue('email',a.email); // Populate all the values which you want to hide from form
}
Mark answer as correct/helpful if it resolves your issue.
Best Regards,
Rajesh M.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-03-2018 05:15 AM
Hi Rajesh,
Is that possible to achieve the same via "Item Variable Assignment" Feature?
Thanks & Regards,
Ram Prakash
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-03-2018 08:01 PM
Hi Ram,
If you are able to populate values in the fields to be hidden using item variable assignment then configuring UI policy as mentioned in earlier post should do the trick.
Regards,
Rajesh M.