Populated Requested for from call module

kun1
Tera Expert
 

Hi Team,

We have a new call in which we have caller field (back end name :caller).So, when we set the call type as request it redirect it to a sc_cat_item view.

NEW CALL:-

After submitting the for, the view is like this:-

So here is the issue is In the caller form i set the caller as A (log in in service now from B), and when it redirect to catalog item view, In the requested for, it set the vale B(Log-in from B). So, please help me here.

 

 

1 ACCEPTED SOLUTION

Just try these lines in your onLoad client script and see if it works

function onLoad(){
var gUrl = new GlideURL();
gUrl.setFromCurrent();
var user = decodeURI(gUrl.getParam("sysparm_requested_for"));
alert(user);
g_form.setValue('reqFor', user);
}

View solution in original post

16 REPLIES 16

Please do mark the correct answer response, Thanks!

Hi Alikutty,

 

Above code are working but one issue is coming.

 

On the RITM, we have variables attached , when the form load, Request for is blank and their location and sub loaction are undefined.