Client Script Rules

< 1 min read

The below table shows the list of ServiceNow client script rules that are checked by Quality Clouds.

See the Client scripts best practices for designing and implementing client scripts.

DescriptionSeverityArea of impact
Possible extra-sensitive PII usage in configuration element – GenderHighSecurity
Possible extra-sensitive PII usage in configuration element – ReligionHighSecurity
Possible use of private dataWarningSecurity
Possible PII usage in configuration element – NationalityWarningSecurity
Possible PII usage in configuration element – AddressWarningSecurity
Possible PII usage in configuration element – EmailWarningSecurity
Possible PII usage in configuration element – PassportWarningSecurity
JavaScript – Avoid use of Function ConstructorsHighSecurity
JavaScript – Avoid use of WebDBHighSecurity
JavaScript – Avoid use of debugger statementsHighSecurity
JavaScript – Avoid unrestricted targetOrigin on cross-domain messagingHighSecurity
JavaScript – Avoid making connections on unsafe protocolsWarningSecurity
JavaScript – Avoid use of Eval functionHighSecurity
Javascript – Avoid use of alert functionLowScalability
Javascript – Avoid use of local storage on Client ScriptsHighSecurity
JavaScript – Optimize LoopsWarningPerformance
JavaScript – Use === comparisonWarningManageability
Client Scripts with hard-coded sys_idsMediumManageability
Document Object Model (DOM) manipulation in Client ScriptsHighManageability
Synchronous AJAX call in Client ScriptsHighPerformance
Client Scripts should not use unsupported scripting APIsHighManageability
Client Scripts with the console.log debugging methodMediumPerformance
GlideRecord usage on Client ScriptsHighPerformance
Client Scripts with empty script fieldLowPerformance
Client Scripts defined on the Global tableHighScalability
Client Scripts without functionMediumScalability
Modified Out of the Box ElementWarningScalability
Updated on March 21, 2025
Was it helpful ?