Create a Zod schema for CAPTCHA fields if enabled for the given form. Returns an empty schema if CAPTCHA is not configured for this form. Note: This only adds the fields - validation must be applied separately using validateCaptcha.

  • Parameters

    • formKey: string

      Form identifier to check CAPTCHA configuration

    Returns ZodObject<{}, $strip>

    Zod schema for CAPTCHA fields or empty schema