Make check box unvisible using onChange client script and script include
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-23-2024 02:49 AM
Hey
I created a check box on incident form in SOW called u_false_transfer.
I need this check box to be visible only if Assignment group type is not 'itil' .
I tried to use UI POLICIES but it workes only after saving the record.
Now I want to write ONchange client script with GlideAjax and Script include.
Script include:
code:
code:
Can someone please help me fix it
Thanks, Shir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-23-2024 02:56 AM
Hi @Shir Sharvit
In this case GlideAjax and Client Callable Script Include will not work for you as it will be an async call and changes will not reflect immediately after making a change on the Assignment Group.
Please share the UI Policy screenshot that you have created earlier.
Best regards,
Kartik Sethi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-23-2024 03:01 AM
your code inside script include is wrong.
Take below two examples for reference
1.) Solved: Check group type of a group - ServiceNow Community
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-23-2024 03:13 AM
I need the script include to return the group type of the assignment group and then check this conditions