--- title: Syntax errors and warnings description: All script fields provide controls for checking the syntax for errors and for locating the error easily when one occurs. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/api-reference/scripts/c\_ScriptSyntaxErrorChecking.html release: australia product: Scripts classification: scripts topic_type: concept last_updated: "2026-03-12" reading_time_minutes: 1 breadcrumb: [Using the JavaScript syntax editor, JavaScript syntax editor, Scripting, API implementation, API implementation and reference] --- # Syntax errors and warnings All script fields provide controls for checking the syntax for errors and for locating the error easily when one occurs. The syntax editor displays messages about errors or warnings in your scripts in the following situations: - Saving a new record or updating an existing record. - Selecting the syntax checking icon before saving or updating a record. \[Omitted image "ScriptSyntaxError.png"\] Alt text: Error message displays with the syntax editor and includes details about the issue and its location in the code. You can configure whether to show indicators next to a line of code that contains an issue for errors, warnings, both, or none with the **glide.ui.syntax\_editor.show\_warnings\_errors** system property. **Parent Topic:**[Using the JavaScript syntax editor](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/scripts/r_EdtJvaScptWSyntxEdtr.md)