paragraphs_field_validator
1 sites
No security coverage
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
- Drupal 10 or 11
- Paragraphs
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.