Order Guide: Item Variable Assignment

kutvaram
Tera Expert

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

3 REPLIES 3

Rajesh M1
Giga Guru

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 : 

find_real_file.png

 

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.

Hi Rajesh,

 

Is that possible to achieve the same via "Item Variable Assignment" Feature?

 

Thanks & Regards,

Ram Prakash

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.