Table of Contents

Class RecaptchaProperties

Namespace
Kentico.Forms.Web.Mvc
Assembly
Kentico.Content.Web.Mvc.dll

Represents properties of a RecaptchaComponent.

public class RecaptchaProperties : FormComponentProperties<string>
Inheritance
object
RecaptchaProperties
Inherited Members
Extension Methods

Constructors

RecaptchaProperties()

Initializes a new instance of the RecaptchaProperties class.

public RecaptchaProperties()

Remarks

The constructor initializes the base class to data type Text and size 1.

Fields

INLINE

The inline badge position.

public const string INLINE = "inline"

Field Value

string

Properties

Badge

Represents the position of the Protected by reCAPTCHA badge rednered on the page.

[RequiredValidationRule]
[EditingComponent("Kentico.DropDown", Label = "{$kentico.formbuilder.component.recaptcha.properties.badge$}", DefaultValue = "bottomright", Order = 5)]
[EditingComponentProperty("DataSource", "bottomright;{$kentico.formbuilder.component.recaptcha.properties.badge.bottomright$}\r\nbottomleft;{$kentico.formbuilder.component.recaptcha.properties.badge.bottomleft$}\r\ninline;{$kentico.formbuilder.component.recaptcha.properties.badge.inline$}")]
public string Badge { get; set; }

Property Value

string

Remarks

Applicable only to reCAPTCHA v3

DefaultValue

Gets or sets the default value of the form component and underlying field.

public override string DefaultValue { get; set; }

Property Value

string

Label

Gets or sets the label of the form component. Hidden for "invisible" recaptcha v3.

[EditingComponent("Kentico.TextInput", Label = "{$kentico.formbuilder.component.recaptcha.properties.label$}", Order = 2)]
public override string Label { get; set; }

Property Value

string

Remarks

Applicable only to reCAPTCHA v2

Layout

Represents the layout of the component (normal or compact).

[RequiredValidationRule]
[EditingComponent("Kentico.DropDown", Label = "{$kentico.formbuilder.component.recaptcha.properties.layout$}", Order = 3)]
[EditingComponentProperty("DataSource", "normal;{$kentico.formbuilder.component.recaptcha.properties.layout.normal$}\r\ncompact;{$kentico.formbuilder.component.recaptcha.properties.layout.compact$}")]
public string Layout { get; set; }

Property Value

string

Remarks

Applicable only to reCAPTCHA v2

Required

Gets or sets value indicating whether the underlying field is required. False by default. If false, the form component's implementation must accept nullable input.

public override bool Required { get; set; }

Property Value

bool

SmartField

Gets or sets value indicating whether the underlying field is smart field. False by default.

public override bool SmartField { get; set; }

Property Value

bool

Theme

Represents the color theme of the component (light or dark).

[RequiredValidationRule]
[EditingComponent("Kentico.DropDown", Label = "{$kentico.formbuilder.component.recaptcha.properties.theme$}", Order = 1)]
[EditingComponentProperty("DataSource", "light;{$kentico.formbuilder.component.recaptcha.properties.theme.light$}\r\ndark;{$kentico.formbuilder.component.recaptcha.properties.theme.dark$}")]
public string Theme { get; set; }

Property Value

string

Tooltip

Gets or sets the tooltip of the form component.

public override string Tooltip { get; set; }

Property Value

string

Type

Represents the type of the component (image or audio).

[RequiredValidationRule]
[EditingComponent("Kentico.DropDown", Label = "{$kentico.formbuilder.component.recaptcha.properties.type$}", Order = 4)]
[EditingComponentProperty("DataSource", "image;{$kentico.formbuilder.component.recaptcha.properties.type.image$}\r\naudio;{$kentico.formbuilder.component.recaptcha.properties.type.audio$}")]
public string Type { get; set; }

Property Value

string

Remarks

Applicable only to reCAPTCHA v2