Skip to main content

MVCxCaptcha.IsValid Property

Gets or sets a value that indicates whether the text entered into the text box coincides with the automatically generated code displayed within the challenge image.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public override bool IsValid { get; set; }

Property Value

Type Description
Boolean

true, if the entered text successfully passed verification; otherwise, false.

Remarks

The IsValid property specifies whether an end-user has correctly recognized the challenge image’s code, and whether the entered text confirms human interaction. The IsValid property’s value is automatically defined within the Captcha extension, depending upon the internally performed verification.

If a built-in validation mechanism is used for the text box value (CaptchaValidationSettings.EnableValidation property is set to true, and some validation rules are defined via the CaptchaSettings.ValidationSettings property), the IsValid property can be set manually, for instance, in a case when you don’t want to display the error text (defined via the CaptchaValidationSettings.ErrorText property) for an invalid editor.

See Also