How to pass the variable value in redirect URL

rmaroti
Tera Contributor

Hello Everyone,

 

I have requirement  when on select of "Learning" reference variable value which is one of the value of different table on current record producer it will redirect to another record producer which has same reference variable in redirect record producer which is working for me but I want populate default value "Learning"  for the same reference variable in redirect record producer only in case of redirect another record producer.

 

I have attached screenshot Please look into those I have highlighted in screenshot where I'm expecting learning default value only at the time of redirect from another record producer.

 

OnChnage Catalog client script-

 

function onChange(control, oldValue, newValue, isLoading) {
    if (isLoading || newValue == '') {
        return;
    }
    var top = g_form.getValue('topic_category');
    if (top == '3c17157d1be80950b5ce9608b04bcbed') // sys_id of "Learning" value
{
        location.href = 'https://rbassisttmp.service-now.com/peoplehub?         id=sc_cat_item&sys_id=839689bb1bcab890b5ce9608b04bcb9d'; // Redirect URL of another record producer
    }
    

}
 
 
 
Note- can we pass on the "What is this request regarding?" reference variable value as "Learning" in same URL of redirect record producer.
10 REPLIES 10

Service_RNow
Mega Sage

Hi @rmaroti 

Follow thread it will be helpful

-the-url 

Please mark reply as Helpful/Correct, if applicable. Thanks!