Class FormAutomationTab
- Namespace
- Kentico.Xperience.Admin.DigitalMarketing.UIPages
- Assembly
- Kentico.Xperience.Admin.DigitalMarketing.dll
Automation tab of the form edit page.
[UIPageLocation(PageLocationEnum.SidePanel)]
public sealed class FormAutomationTab : ModelEditPage<FormAutomationModel>, IPage
- Inheritance
-
objectFormAutomationTab
- Implements
- Inherited Members
- Extension Methods
Constructors
FormAutomationTab(IFormItemCollectionProvider, IFormDataBinder)
Initializes an instance of the FormAutomationTab class.
public FormAutomationTab(IFormItemCollectionProvider formItemCollectionProvider, IFormDataBinder formDataBinder)
Parameters
formItemCollectionProvider
IFormItemCollectionProviderformDataBinder
IFormDataBinder
Properties
Model
Gets edited model that represents the form.
protected override FormAutomationModel Model { get; }
Property Value
ObjectId
ID of the form.
[PageParameter(typeof(IntPageModelBinder))]
public int ObjectId { get; set; }
Property Value
- int
Methods
ConfigurePage()
Set up page's configuration. Configures the submit action.
public override Task ConfigurePage()
Returns
- Task
GetClientFormItems(IEnumerable<IFormItem>)
Returns a collection of client item properties for given form items.
protected override Task<ICollection<IFormItemClientProperties>> GetClientFormItems(IEnumerable<IFormItem> formItems)
Parameters
formItems
IEnumerable<IFormItem>Form items.
Returns
- Task<ICollection<IFormItemClientProperties>>
InitializeContext()
Initializes form context.
protected override Task<IFormContext> InitializeContext()
Returns
- Task<IFormContext>
ProcessFormData(FormAutomationModel, ICollection<IFormItem>)
Stores the model
and creates a response for the Submit(FormSubmissionCommandArguments) command.
protected override Task<ICommandResponse> ProcessFormData(FormAutomationModel model, ICollection<IFormItem> formItems)
Parameters
model
FormAutomationModelModel to be stored.
formItems
ICollection<IFormItem>Form items with bound component values.
Returns
- Task<ICommandResponse>
The response to be used for the Submit(FormSubmissionCommandArguments) command.