Client Script in Incident form

Vengeful
Mega Sage

I received a requirement that in the incident form, if Subcategory 1 (u_subcategory) is SAP, only APO, ECC, OpenText, and SAP-Security should be shown in the CI field.

Vengeful_1-1715756545825.png

 

I created a Client Script, but there's an error: onChange script error: TypeError: g_form.setDependentField is not a function function () { [native code] }

 

Client Script:

Vengeful_2-1715756631901.png

 

 

 

1 ACCEPTED SOLUTION

Mark Manders
Mega Patron

You will need to adjust this in the reference qualifier of the cmdb_ci field. Add a check to the subcategory field and limit the choices.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

View solution in original post

5 REPLIES 5

Abhishek Kathe
Mega Guru

Hi,
refer the below youtube link and watch from the 32:50
https://youtu.be/kcKcM50CTyc?si=dnNRVZDUE1UNqSQc