Table of Contents

Interface IFormComponentConfigurator

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

Represents a FormComponent configurator.

public interface IFormComponentConfigurator
Extension Methods

Properties

DependencyFieldName

Name of the dependency field which will trigger the configurator when changed.

string DependencyFieldName { get; }

Property Value

string

Methods

Configure(FormComponent, IFormFieldValueProvider)

Configures the form component.

void Configure(FormComponent formComponent, IFormFieldValueProvider formFieldValueProvider)

Parameters

formComponent FormComponent

Form component to configure.

formFieldValueProvider IFormFieldValueProvider

Provider of previous form field values.

Remarks

This method can not be used to set value of form component. Use ConfigureValue(IFormFieldValueProvider, string) instead.

ConfigureValue(IFormFieldValueProvider, string)

Sets value of form component.

object ConfigureValue(IFormFieldValueProvider formFieldValueProvider, string changedFieldName)

Parameters

formFieldValueProvider IFormFieldValueProvider

Provider of previous form field values.

changedFieldName string

Name of the field that triggered the configuration

Returns

object