CSA · Question #6
Which of the following are a type of client scripts supported in ServiceNow? (Choose four.)
The correct answer is A. onSubmit C. onCellEdit D. onLoad F. onChange. ServiceNow supports several types of client scripts that execute on the client-side, including onSubmit, onCellEdit, onLoad, and onChange.
Question
Which of the following are a type of client scripts supported in ServiceNow? (Choose four.)
Options
- AonSubmit
- BonUpdate
- ConCellEdit
- DonLoad
- EonEdit
- FonChange
- GonSave
How the community answered
(50 responses)- A94% (47)
- B4% (2)
- E2% (1)
Why each option
ServiceNow supports several types of client scripts that execute on the client-side, including `onSubmit`, `onCellEdit`, `onLoad`, and `onChange`.
Client scripts execute on the user's browser, providing interactive functionality.
`onUpdate` is a type of Business Rule (server-side), not a client script.
`onLoad` scripts run when a form loads, `onChange` scripts execute when a field's value changes, `onSubmit` scripts run when a form is submitted, and `onCellEdit` scripts execute when a list cell is modified. These are standard client script types.
Client scripts execute on the user's browser, providing interactive functionality.
`onEdit` is not a standard client script type in ServiceNow; `onCellEdit` is the correct client script for list editing.
`onLoad` scripts run when a form loads, `onChange` scripts execute when a field's value changes, `onSubmit` scripts run when a form is submitted, and `onCellEdit` scripts execute when a list cell is modified. These are standard client script types.
`onSave` is not a standard client script type in ServiceNow; `onSubmit` is used for form submission which typically involves saving.
Concept tested: ServiceNow Client Script types
Source: https://docs.servicenow.com/bundle/utah-application-development/page/script/client-scripts/concept/c_ClientScripts.html
Topics
Community Discussion
No community discussion yet for this question.