Try our conversational search powered by Generative AI!

Class FormFieldStatistic

Helper class to keep track of information for a form field.

Inheritance
System.Object
FormFieldStatistic
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Web.WebControls
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
public class FormFieldStatistic

Constructors

FormFieldStatistic(String)

Constructor for a field.

Declaration
public FormFieldStatistic(string fieldName)
Parameters
Type Name Description
System.String fieldName

Name of field in form.

Properties

FieldName

The name of the field.

Declaration
public string FieldName { get; }
Property Value
Type Description
System.String

Votes

Gets the votes.

Declaration
public NameValueCollection Votes { get; }
Property Value
Type Description
System.Collections.Specialized.NameValueCollection

The votes.

Methods

AddEmptyVote(String)

Adds an "empty" vote in order to show an alternative that has not got any votes.

Declaration
public void AddEmptyVote(string voteValue)
Parameters
Type Name Description
System.String voteValue

The string value of the field.

AddVote(String)

Add a field value. Will aggregate identical answers with a counter.

Declaration
public void AddVote(string voteValue)
Parameters
Type Name Description
System.String voteValue

The string value of the field.

Extension Methods