Category:
Updated on: August 30, 2025
|
0
Client Script Patterns 1 - OnLoad and OnChange
đź”§Client Script Patterns:
Examples & Scenarios
Â
1) onLoad: prepare the form
1.1 Hide fields for non-admins
1.2 Show a one-time banner message
1.3 Make a section collapse for cleaner UX
1.4 Pre-fill from logged-in user
1.5 Dynamically switch form view (when a specific condition is met)
2) onChange: react to field edits
2.1 Priority drives Impact & Urgency
2.2 Validate future date (no past due date)
2.3 Enforce attachments for certain categories
2.4 Conditional reference qualifier (filter “Assignment group” by selected CI)
2.5 Auto-copy caller’s manager (with GlideAjax)
Client Script
Script Include (client-callable)
Comments
No comments yet.