Trouble setting Field Dependencies in custom scripts

Trouble setting Field Dependencies in custom scripts


I am currently trying to create a script that creates a three-field dependency between division, district, and subdistrict as shown below, whereby if the user selects a division, it would showcase the various districts in said area, and after selecting the district, it would showcase the various subdistricts in that area (if any). I have followed the scripts based on the Guides given by ManageEngine as shown in the hyperlinks above.

The issue is that I am currently getting the error:

"ReferenceError: $CS is not defined at eval"

And I am unsure on what the issue is on my script. Attached in this post is the script in question, along with the dependencies. I hope someone is able to assist me in resolving this issue.

                New to ADSelfService Plus?