You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Validate CI selection via GlideAjax with submit guard
2
+
3
+
## What this solves
4
+
End users sometimes pick CIs that are retired or unsupported for fulfilment. This client script validates a selected CI using GlideAjax and prevents submission if the CI fails checks.
5
+
This could also be used where some CIs are supported by third parties and prevent use in incorrect forms.
6
+
7
+
## Where to use
8
+
- Catalog Item with a reference variable to `cmdb_ci`
9
+
- Add the client script as an onChange on that variable
10
+
- Install the Script Include in the same scope
11
+
12
+
## How it works
13
+
- onChange reads the selected CI sys_id
14
+
- Calls Script Include via GlideAjax
15
+
- Server checks for active CI and support group presence
16
+
- Client displays messages and disables submit if invalid
0 commit comments