Skip to main content

FormContext

Assembly: ServiceStack.Razor.dll
View Source
Declaration
public class FormContext

Properties

FieldValidators

View Source
Declaration
public IDictionary<string, FieldValidationMetadata> FieldValidators { get; }

FormId

View Source
Declaration
public string FormId { get; set; }

ReplaceValidationSummary

View Source
Declaration
public bool ReplaceValidationSummary { get; set; }

ValidationSummaryId

View Source
Declaration
public string ValidationSummaryId { get; set; }

Methods

GetJsonValidationMetadata()

View Source
Declaration
public string GetJsonValidationMetadata()
Returns

System.String

GetValidationMetadataForField(String)

View Source
Declaration
public FieldValidationMetadata GetValidationMetadataForField(string fieldName)
Returns

ServiceStack.Html.FieldValidationMetadata

Parameters
TypeName
System.StringfieldName

GetValidationMetadataForField(String, Boolean)

View Source
Declaration
public FieldValidationMetadata GetValidationMetadataForField(string fieldName, bool createIfNotFound)
Returns

ServiceStack.Html.FieldValidationMetadata

Parameters
TypeName
System.StringfieldName
System.BooleancreateIfNotFound

RenderedField(String)

View Source
Declaration
public bool RenderedField(string fieldName)
Returns

System.Boolean

Parameters
TypeName
System.StringfieldName

RenderedField(String, Boolean)

View Source
Declaration
public void RenderedField(string fieldName, bool value)
Parameters
TypeName
System.StringfieldName
System.Booleanvalue