Skip to main content
A newer version of this page is available. .

CaptchaValidationSettings.SetFocusOnError Property

Gets or sets a value that specifies whether focus is set to the text box when validation fails.

Namespace: DevExpress.Web.Captcha

Assembly: DevExpress.Web.v19.2.dll

Declaration

[DefaultValue(false)]
public bool SetFocusOnError { get; set; }

Property Value

Type Default Description
Boolean **false**

true to set focus on the text box when validation fails; otherwise, false.

Property Paths

You can access this nested property as listed below:

Object Type Path to SetFocusOnError
ASPxCaptcha
.ValidationSettings.SetFocusOnError
CaptchaSettings
.ValidationSettings.SetFocusOnError
MVCxCaptcha
.ValidationSettings.SetFocusOnError

Remarks

Use the SetFocusOnError property to specify whether focus is automatically set to the text box when captcha validation fails. This allows the user to quickly type a new value.

See Also