---
title: "MosparoCaptchaValidator"
manual: "mosparo integration for EXT:form and Extbase-based forms"
version: "1.1"
permalink: "https://docs.typo3.org/permalink/denkwerk/mosparo-form:api-mosparo-captcha-validator@1.1"
source: "Api/MosparoCaptchaValidadtor.rst"
rendered: "2026-11-11T13:09:55+00:00"
---

# MosparoCaptchaValidator {#api-mosparo-captcha-validator}

-   **class MosparoCaptchaValidator**

    -   *Fully qualified name:* `\Denkwerk\MosparoForm\Validation\Validator\MosparoCaptchaValidator`

    Validator class that integrates mosparo verification into TYPO3 Extbase and Form Framework forms.

    Validates form submissions by sending normalized data to a mosparo server using the configured project credentials.

    Supported options:

    -   *option string selectedProject:* The mosparo project configuration key to be used.
    -   *option string requiredFields:* Comma-separated list of field names that must be verified.
    -   *option string verifiableFields:* Comma-separated list of additional field names that should be checked.
    -   *option Denkwerk\\MosparoForm\\Domain\\Model\\Form\\MosparoFormDefinitionInterface formDefinition:* Used to extract and normalize form structure.

    -   **\_\_construct(FormNormalizerManager $formNormalizerManager)**

        -   *param FormNormalizerManager $formNormalizerManager:* The form normalizer manager service.

    -   **isValid(mixed $value)**

        Validates the submitted form data using mosparo.

        -   Normalizes submitted form data via the registered normalizer.
        -   Sends verification request to mosparo.
        -   Checks that required and verifiable fields are included in the result.
        -   Adds validation errors if verification fails or fields are missing.

        -   *param mixed $value:* Not used; required by interface.

        *Returns:* void
