Table of Contents

Class FieldExtensions

Namespace
Dynamicweb.Forms
Assembly
Dynamicweb.Forms.dll
public static class FieldExtensions
Inheritance
FieldExtensions
Inherited Members

Methods

GetAutoOrDefaultValue(Field)

Resolves auto value from current context, e.g. current user name or current date and time.

public static string GetAutoOrDefaultValue(this Field field)

Parameters

field Field

Returns

string

GetFieldSize(Field)

Gets the size of the field or the form size if the field size is not set.

public static int GetFieldSize(this Field field)

Parameters

field Field

Returns

int

GetFieldType(Field)

public static FieldType GetFieldType(this Field field)

Parameters

field Field

Returns

FieldType

GetHtml(Field)

Gets the field HTML.

public static string GetHtml(this Field field)

Parameters

field Field

Returns

string

GetHtml(Field, string, bool)

Gets the field HTML.

public static string GetHtml(this Field field, string value, bool preview)

Parameters

field Field

The field to get HTML for.

value string

The value.

preview bool

if set to true [preview].

Returns

string

GetInputType(Field)

public static string GetInputType(this Field field)

Parameters

field Field

Returns

string

HasPatternSupport(Field)

Gets a value indicating that this instance supports pattern attribute

public static bool HasPatternSupport(this Field field)

Parameters

field Field

Returns

bool

IsButton(Field)

Gets a value indicating whether this instance is button.

public static bool IsButton(this Field field)

Parameters

field Field

Returns

bool

IsInput(Field)

Gets a value indicating whether this instance is input.

public static bool IsInput(this Field field)

Parameters

field Field

Returns

bool

IsList(Field)

Gets a value indicating whether this instance is list and can have options.

public static bool IsList(this Field field)

Parameters

field Field

Returns

bool

IsOther(Field)

Gets a value indicating whether this instance is other.

public static bool IsOther(this Field field)

Parameters

field Field

Returns

bool

IsTextarea(Field)

Gets a value indicating whether this instance is text area.

public static bool IsTextarea(this Field field)

Parameters

field Field

Returns

bool

IsUserInput(Field)

Gets a value indicating whether this instance is user input.

public static bool IsUserInput(this Field field)

Parameters

field Field

Returns

bool

IsValidationInput(Field)

Gets a value indicating whether this instance is validation input.

public static bool IsValidationInput(this Field field)

Parameters

field Field

Returns

bool
To top