---
title: Avoid Formula Fields With JavaScript Code
description: "Impact Area Security Severity Medium Affected Element Object ## Rule ID **SF-0196** ## Impact Formula fields with JavaScript code add complexity and are difficult to test and maintain. ## Remediation Remove the logic from the field. ### Time to fix…"
url: "https://community-staging.qualityclouds.com/qcdocs/qcr/rules/avoid-formula-fields-with-javascript-code/"
updated: "2025-03-21"
category: Rules
---

# Avoid Formula Fields With JavaScript Code

Impact Area

Security

           Severity

Medium

           Affected Element

Object

## Rule ID

**SF-0196**

## Impact

Formula fields with JavaScript code add complexity and are difficult to test and maintain.

## Remediation

Remove the logic from the field.

### Time to fix

60 min

## Reference

This rule is linked to [Common Weakness Enumeration CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code](https://cwe.mitre.org/data/definitions/95.html)
