Client Script - Validate CI selection via GlideAjax - Pull 1#2366
Closed
hanna-g-sn wants to merge 3 commits intoServiceNowDevProgram:mainfrom
Closed
Client Script - Validate CI selection via GlideAjax - Pull 1#2366hanna-g-sn wants to merge 3 commits intoServiceNowDevProgram:mainfrom
hanna-g-sn wants to merge 3 commits intoServiceNowDevProgram:mainfrom
Conversation
This README explains the validation of CI selections using GlideAjax in a client script, detailing its purpose, usage, and functionality.
This script validates a Configuration Item (CI) selection via GlideAjax, checking if the CI is operational and has an assignment group.
Contributor
ravichandra1998g
left a comment
There was a problem hiding this comment.
Hello @hanna-g-sn
Thank you for your efforts in submitting the PR.
We already have several clientscript -> GlideAjax call -> Server side scripts.
There are several ServiceNow community threads too.
So this cannot be merged. At Hactoberfest, we are aiming for high quality contributions. You can see some of the recently merged PRs to know the kind of code snippets we are aiming for.
Please resubmit after making dynamic use cases/contexts that are suitable for Hactoberfest!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Description:
This contribution adds a practical client and server pair. When a requester selects a CI on a catalog item, an onChange client script calls a Script Include via GlideAjax to validate that the CI is active and supported. The script shows a clear message and optionally disables submit when invalid.
Includes README, the Catalog Client Script, and the Script Include.
Pull Request Checklist
Overview
Code Quality
Repository Structure Compliance
Core ServiceNow APIs/Server-Side Components/Client-Side Components/Modern Development/Integration/Specialized Areas/Documentation
Restrictions