Catalog Client script does not save data in RITM Variable

Nisha30
Kilo Sage

Hi Experts,

We have catalog client script for 2 variables and based on selection of VarA, choices are displayed on VARb.

This is working perfectly.

issue is when RITM is submitted , in that Variable the data is not saved it is empty.

 

How to save the data there in the VarB

 

The catalog Client script looks like below

 

function onChange(control, oldValue, newValue, isLoading) {
    if (isLoading || newValue == '')
    {
        g_form.clearOptions('request_activity');
        g_form.addOption('request_activity', '', '-- None --');
        return;
    }
    if(newValue =='Infra')
        {
        g_form.clearOptions('request_activity');
        g_form.addOption('request_activity', '', '-- None --');
        g_form.addOption('request_activity','User Account','User Account');
}
}

 

 

1 ACCEPTED SOLUTION

sejal1107
Tera Guru

Hi @Nisha30 

 

If you have checked "Applies on Requested Items"  on client script then please uncheck it and give it a try.

 

If my response helps you resolve your issue. Kindly mark it as helpful & correct. It will be helpful to future readers

Thanks,

Sejal

Please check and Mark Helpful and Correct if it really helped you.
Thanks & Regards
Sejal Chavan

View solution in original post

4 REPLIES 4

Moin Kazi
Kilo Sage
Kilo Sage

Hi @Nisha30 ,

 

Please Check these 2-checkbox is checked in your catalog client script.

1) Applies on Requested Item

2) Applies on Catalog Tasks

 

MoinKazi_0-1729356089330.png

 

Please mark my answer as solution as accepted and indicate whether it was helpful in resolving your queries.

 

Regards

Moin

 

Pratiksha Kalam
Kilo Sage

Hello ,
You can try  setValue(). or check any business rule / client script may affecting it .
g_form.setValue('request_activity', ''); // Clear value when no selection

g_form.setValue('request_activity', 'User Account');

If my answer is helpful please mark it as helpful and correct .
Thank You 

Br,

pratiksha.k

sejal1107
Tera Guru

Hi @Nisha30 

 

If you have checked "Applies on Requested Items"  on client script then please uncheck it and give it a try.

 

If my response helps you resolve your issue. Kindly mark it as helpful & correct. It will be helpful to future readers

Thanks,

Sejal

Please check and Mark Helpful and Correct if it really helped you.
Thanks & Regards
Sejal Chavan

Thanks community . i unchecked "Applies on Requested Items". it works