Table of Contents

Class ConsentAgreementProperties

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

Represents properties of a ConsentAgreementComponent.

public class ConsentAgreementProperties : FormComponentProperties<Guid?>
Inheritance
object
ConsentAgreementProperties
Inherited Members
Extension Methods

Constructors

ConsentAgreementProperties()

Initializes a new instance of the ConsentAgreementProperties class.

public ConsentAgreementProperties()

Remarks

The constructor initializes the base class to data type Guid.

Properties

ConsentCodeName

Represents text of selected consent.

[EditingComponent("Kentico.ConsentSelector", Label = "{$kentico.formbuilder.component.consentagreement.properties.consenttext$}")]
public string ConsentCodeName { get; set; }

Property Value

string

ConsentInfo

Returns ConsentInfo selected by ConsentCodeName.

[BindNever]
[ValidateNever]
[JsonIgnore]
public ConsentInfo ConsentInfo { get; }

Property Value

ConsentInfo

ConsentText

Text of selected ConsentInfo to be displayed in view.

public string ConsentText { get; }

Property Value

string

DefaultValue

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

public override Guid? DefaultValue { get; set; }

Property Value

Guid?

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