Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module allows site builders to enforce custom validation rules on fields within Paragraphs entities. It enables conditional logic, such as requiring a specific field to meet certain criteria only if another field has a particular value, and can be restricted to specific content types or nodes. This helps content editors adhere to required data structures without needing custom code.

Introduction

Paragraphs Field Validator is a utility module for Drupal site builders who work extensively with the Paragraphs module. It allows you to enforce custom validation rules on Paragraph fields based on configurable conditions.

Instead of relying only on field constraints or custom code, this module lets you define rules like:

  • “If field X equals Y, then field Z must match this regex.”
  • “Apply this validation only on specific nodes.”

This ensures content editors follow the correct structure without needing developer intervention.

Features

  • Define validation rules per Paragraph bundle.
  • Conditional validation triggered by a key field’s value.
  • Regex pattern validation with customizable error examples.
  • Case-insensitive matching option.
  • Restrict rules to specific nodes.
  • Configuration form at Configuration → Content authoring → Paragraphs Field Validator.

Target audience

This module is designed for:

  • Site builders who configure editorial workflows and need to enforce rules without custom PHP.
  • Content architects who use Paragraphs to model complex content types.
  • Agencies/teams maintaining multisite or multilingual sites where consistency in Paragraph data entry is critical.

Additional requirements

Why use this module?

If your editors regularly use Paragraphs and you want to enforce business rules (like URL formats, phone numbers, or conditional requirements), this module saves time and reduces human error without writing custom validators.

Activity

Total releases
4
First release
Sep 2025
Latest release
7 months ago
Releases (12 mo)
4 ▲ from 0
Maintenance
Slowing

Release Timeline

Releases

Version Type Release date
1.0.2 Stable Dec 3, 2025
1.0.1 Stable Sep 26, 2025
1.0.0 Stable Sep 23, 2025
1.0.x-dev Dev Sep 23, 2025