- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2025 02:35 AM
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 !!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2025 03:04 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2025 06:32 AM
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?