CaptchaMessagesSettingsBuilder

Methods

Audio(System.String)

Defines the "title" message of the audio button. The default message is "Speak captcha".

Parameters

value - System.String

The value that configures the "title" of the audio button.

Example

Razor
 
             @( Html.Kendo().Captcha()
                .Name("captcha")
                .Messages(msg => msg.Audio("Play captcha"))
            )
             

ImageAlt(System.String)

Defines the "alt" attribute of the captcha's image tag. The default message is "Type the Captcha code from the image".

Parameters

value - System.String

The value that configures the "alt" value of the image tag.

Example

Razor
 
             @( Html.Kendo().Captcha()
                .Name("captcha")
                .Messages(msg => msg.ImageAlt("Enter the text from the image."))
            )
             

Reset(System.String)

Defines the "title" message of the reset button. The default message is "Reset captcha".

Parameters

value - System.String

The value that configures the "title" of the reset button.

Example

Razor
 
             @( Html.Kendo().Captcha()
                .Name("captcha")
                .Messages(msg => msg.Reset("Reset"))
            )
             

Success(System.String)

Defines message that is displayed when the validation is successful. The default message is "Verification successful".

Parameters

value - System.String

The value that configures the validation success message.

Example

Razor
 
             @( Html.Kendo().Captcha()
                .Name("captcha")
                .Messages(msg => msg.Success("Successful Verification"))
            )