The Zurich release has arrived! Interested in new features and functionalities? Click here for more

hide RITM choices based on catalog item form

tushar_ghadage
Tera Contributor

Hi all, 

I have req 

I have choice field on the form called emp type 

there only if I select third party employee choice (on the catalog item on portal ) then 

on the state field on the RITM level (when the catalog item is submitted) 

choices like open , assigned to vendor , awaiting customer information should be hidden.

But i am not sure how shall i approach can anyone please guide. 

 

thankss !!

 

1 ACCEPTED SOLUTION

anshul_goyal
Kilo Sage

Hello @tushar_ghadage,

Create a onLoad() catalog client script and select the 'Applies on Requested Items' checkbox. Use below code after that:

function onLoad() {
    //Type appropriate comment here, and begin script below
    var empType = g_form.getValue('employee_type'); // Get the value of Employee Type variable

    if (empType == 'third_party_employee') {
        g_form.removeOption('state', '4'); // add your options backend value
        g_form.removeOption('state', '7'); // add your options backend value
    }
}

 

If my response resolved your query, kindly mark it as Accepted and Helpful for future reference.

Best Regards,
Anshul

View solution in original post

5 REPLIES 5

okay but I want to trigger the SLA when some once selects the choice A on the catalog item form in such case how to proceed?