---
schema_version: "1"
id: 33195b205828bb18cbb29dec4a30045966e4858e7f2386a29642435ab7983a00
title: Regulatory Compliance and Automated Violations
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/service/264-0-0/wfs_df_data_capture_regulatory_compliance.md
canonical_url: https://help.salesforce.com/s/articleView?id=service.wfs_df_data_capture_regulatory_compliance.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 9356b86b15f2f4ac7290ca74b3b98b7ed242bfb8104241e446ec41ddf0d232b8
description: For regulatory inspections, Data Capture forms check work against regulatory codes, capture a compliance status for each question, and generate Regulatory Code Violation records automatically when a response is noncompliant.
products:
  - Public Sector
  - Service Cloud
release: "264"
---
# Regulatory Compliance and Automated Violations

For regulatory inspections, Data Capture forms check work against regulatory codes, capture a compliance status for each question, and generate Regulatory Code Violation records automatically when a response is noncompliant.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong> and <strong>Unlimited</strong> Editions</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in orgs where Field Service and Discovery Framework are enabled.</td></tr></tbody></table>

Inspection teams run field inspections for regulatory programs, such as licensing and permits. An inspection checklist is a Data Capture form that an inspector completes in the Field Service mobile app. This topic explains how those forms connect to regulatory codes and generate violation records.

## Regulatory Codes on Questions

A regulatory code is the standard that an inspection checks against, such as a building or health code. You create each code as a record with a name, subject, type, effective dates, and regulatory authority. See [Create Regulatory Code Records](https://help.salesforce.com/s/articleView?id=ind.psc_create_a_regulatory_code.htm&type=5&language=en_US). When you build the form, associate a question with the regulatory code it evaluates, so the inspector sees the standard while answering. On the form, the question shows the count of associated regulatory codes—for example, a **3 regulatory codes** label—and, for each code, its **Name**, **Subject**, effective dates, **Type**, and **Description**. Inspectors select the applicable codes from the dropdown. Because inspectors often work offline, prime the regulatory codes for offline use before a visit. See [Considerations for Data Capture](https://help.salesforce.com/s/articleView?id=service.wfs_df_data_capture_considerations.htm&release=264.0.0&type=5 "Before you build Data Capture forms, understand the permissions, offline priming, and staged-data behavior that they require.").

## Compliance Status

The **Assessment Question Status** picklist on the **Inspection Assessment Indicator** object captures compliance status. Define the statuses your inspections use, such as Compliant, Not Compliant, and Not Applicable, and mark the statuses that represent a failure as violating. When an inspector completes the form, they set the compliance status for each question. See [Set Up Regulatory Compliance and Automated Violations](https://help.salesforce.com/s/articleView?id=service.wfs_df_data_capture_regulatory_compliance_setup.htm&release=264.0.0&type=5 "Create the regulatory codes your inspections check against, define the compliance statuses that represent a failure, and associate codes with questions. Inspections then generate Regulatory Code Violation records automatically.").

## Automated Violations

When an inspector submits the form, each question whose response has a violating compliance status generates a Regulatory Code Violation record for the associated regulatory code. Automating these records removes manual data entry in the field and keeps the enforcement trail consistent.

- **[Set Up Regulatory Compliance and Automated Violations](https://help.salesforce.com/s/articleView?id=service.wfs_df_data_capture_regulatory_compliance_setup.htm&release=264.0.0&type=5)**  
    Create the regulatory codes your inspections check against, define the compliance statuses that represent a failure, and associate codes with questions. Inspections then generate Regulatory Code Violation records automatically.