Table of Contents

Class FormViewModel

Namespace
Dynamicweb.Forms
Assembly
Dynamicweb.Forms.dll

Represents a view model for rendering a form with its fields and field options in a razor template.

public class FormViewModel : ViewModelBase
Inheritance
FormViewModel
Inherited Members

Constructors

FormViewModel()

public FormViewModel()

Properties

CssClass

Gets or sets the CSS class of the form.

public string? CssClass { get; set; }

Property Value

string

Fields

Gets the collection of form fields.

public IEnumerable<FormFieldViewModel> Fields { get; }

Property Value

IEnumerable<FormFieldViewModel>

ID

Gets or sets the ID of the form.

public int ID { get; set; }

Property Value

int

MaxSubmits

Gets or sets the maximum number of submits for the form.

public int MaxSubmits { get; set; }

Property Value

int

Name

Gets or sets the name of the form.

public string? Name { get; set; }

Property Value

string

Methods

GetSubmits()

Gets the collection of form submits.

public IEnumerable<FormSubmitViewModel> GetSubmits()

Returns

IEnumerable<FormSubmitViewModel>

The collection of form submits.

To top