Add Dynamic Catalog Variable Label Update Client Script#2352
Add Dynamic Catalog Variable Label Update Client Script#2352mitalizope wants to merge 2 commits intoServiceNowDevProgram:mainfrom
Conversation
Dynamically updates the label of a catalog variable based on another variable’s value.
ravichandra1998g
left a comment
There was a problem hiding this comment.
Hello @mitalizope
appreciate the effort you’ve put into this contribution. Thank you for contributing!
For Hacktoberfest, we’re aiming for high-quality contributions providing real-world developer use cases. You can see some of the recently merged PRs to know the kind of code snippets we are aiming for.
Also, Please refer to the contributing guidelines.
Expanded Snippets: Code snippets reused from the ServiceNow Documentation or API References are acceptable only if they are expanded in a meaningful way (e.g., with additional context or variations). Remember: "QUANTITY IS FUN, QUALITY IS KEY."
The setLabelOf method example is already available in the ServiceNow Docs. #2291 is closed for the same reason.
https://www.servicenow.com/docs/bundle/zurich-api-reference/page/app-store/dev_portal/API_reference/GlideForm/concept/c_GlideFormAPI.html
Please reopen/ submit a new one after adding more dynamic context/use cases that are more suitable for the Hactoberfest
PR Description:
This catalog client script dynamically updates the label of one catalog variable based on the value of another.
When a user selects a value for the Asset Type variable, the label of the Asset Name variable automatically updates to reflect the selected type.
It is useful for providing contextual labels for dependent fields in Service Catalog items.
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