UI Action is not picking the condition
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2025 12:50 AM
Hello Team,
Ui Action is not picking up the condition where it calling script include , please help me to get this issue resolved
ideally it should skipped the Risk assesment for RFC change , poreviously it is working but not now
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2025 12:57 AM
Hi @ABC6 ,
Fix Steps:
Check Script Include: Ensure it's active and Client Callable = true if used on client-side.
Condition Syntax: Confirm it returns true/false properly (not null/undefined).
Use GlideAjax: If UI Action is client-side, call Script Include via GlideAjax, not directly.
Debug: Add gs.log() in Script Include and test in Scripts - Background to verify output.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2025 01:03 AM
Hi @ABC6
Did you check what is being returned from the script include? Please share the script from the script include.
Regards,
Siva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2025 01:04 AM
Hi @ABC6
Can you also show us code on script include side and its configuration?
Regards,
Abhijit
ServiceNow MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2025 01:09 AM
Script include which is on Condition side or Which we use over script section
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2025 01:10 AM
Script include which is on Condition side or Which we use over script section?