An onChange Catalog Client Script for a variable not working on Service Portal
The issue is seen because of some problems with the script. There were the following issues with the script:
UI Type was set to Desktop
Variable name was empty
To fix the script, the issues mentioned above need to be resolved:
UI Type should be set to All
Variable name should be set to the correct variable onChange of which it should be triggered.
The script part itself needed to be corrected.
The condition to check for the boolean variable's value was as below:
if (newValue == true)
This needs to be changed to the following:
if (newValue == 'true')