Could you please share the screenshot of client script and the variables as well with their backend name along with values?

Hi@BrahmjeetTanwar 

It is working on platform side but not working on portal as shown in the SS.

1_DipikaD_0-1756194624300.png

1_DipikaD_1-1756194737925.png1_DipikaD_2-1756195771695.png

1_DipikaD_3-1756196358964.png

 

Please select UI Type as All.

Also, could you post a screenshot of whole Client script. I guess this is the only issue - UI Type is not selected as all.

View solution in original post

@1_DipikaD  Please check once

Shruti D
Kilo Sage

Hello @1_DipikaD,
Try the below script: 

Applies to: A Catalog Item

Catalog item: Your Catalog item

UI Type: All

Type: onChange

Variable name: Select your variable (i.e., request_type)
Applies on a Catalog Item view  ☑️


Script: 

function onChange(control, oldValue, newValue, isLoading) {
    if (isLoading || newValue == '') {
        return;
    }

    if (newValue == '1') {
        g_form.showFieldMsg('request_type', "This request requires email approval from the Business mgmt", 'info');
    } else {
        g_form.hideFieldMsg('request_type');
    }
}

 

Please Mark Correct ✔️if this solves your query and also mark Helpful 👍 if you find my response worthy based on the impact.

 

Regards,

Shruti