Skip to content

Latest commit

 

History

History
9 lines (8 loc) · 581 Bytes

Client Scripts.md

File metadata and controls

9 lines (8 loc) · 581 Bytes

Client Script Standards

  • Use Client Scripts to validate user input
  • When possible, use a UI Policy to set field attributes to mandatory, read-only, or visible rather than a Client Script
  • Do not create Global Client Scripts, instead create them on Base Tables that can be inherited for all child/extending tables
  • If possible, avoid DOM Manipulation
  • Do not use GlideRecord in Client Scripts, use GlideAjax instead
  • Always remove console logging and alerts prior to completion
  • If creating Client Scripts for Catalog Items, ensure that it works in the Service Portal