- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2024 02:28 AM
Hey Folks,
I'm just learning and practising development, I'm unable to complete the Script include & client script, need your help.
Can someone help with what went wrong
Script Include :
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2024 11:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2024 06:36 AM
Hi @abjaffrey
In your script include it doesn't look like you have sysparm_user_id in quotes in your GlideRecord query. can you change that and see if it works? I would put the user_id that you pass in to the script in variable like this: var userId = this.getParameter('sysparm_user_id'); then add the userId variable in the query instead, it makes the script a bit easier to read.
It is also a good idea to log out data both in script include and client script when it does not work as intended.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2024 11:17 PM
Thanks for the response, i've tried changing the code as you suggested. But still it doesn't work.
Script Include:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2024 07:03 AM
You didn't say what happens when you run this, and how that is different from the result you expected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2024 08:27 AM
the expected result is that when i change the caller field in incident form the description should change as per the script where we are returning an array
but im getting no change in description