Class XFormActionHelper

Inheritance
System.Object
XFormActionHelper
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.XForms.Util
Assembly: EPiServer.XForms.dll
Version: 8.11.0
Syntax
public class XFormActionHelper

Constructors

XFormActionHelper()

Declaration
public XFormActionHelper()

Fields

SEND_MAIL

Declaration
public static string SEND_MAIL
Field Value
Type Description
System.String

SEND_TO_CUSTOM_URL

Declaration
public static string SEND_TO_CUSTOM_URL
Field Value
Type Description
System.String

SEND_TO_DATABASE

Declaration
public static string SEND_TO_DATABASE
Field Value
Type Description
System.String

SEND_TO_DATABASE_EMAIL

Declaration
public static string SEND_TO_DATABASE_EMAIL
Field Value
Type Description
System.String

Methods

DoAction(XFormData, XFormPostedData, Boolean)

Executes the action

Declaration
public static bool DoAction(XFormData xFormData, XFormPostedData xFormPostedData, bool throwException)
Parameters
Type Name Description
XFormData xFormData

Value holder of XForm data

XFormPostedData xFormPostedData

Posted data

System.Boolean throwException

Boolean indicating if exception should be thrown on error

Returns
Type Description
System.Boolean

True if action was successfull

HasAlreadyPosted(Guid, ChannelOptions, HttpCookieCollection, IPrincipal)

Indicates if the user already has posted data for the XForm

Declaration
public static bool HasAlreadyPosted(Guid formId, ChannelOptions channelOptions, HttpCookieCollection cookieCollection, IPrincipal user)
Parameters
Type Name Description
System.Guid formId

The id of the XForm

ChannelOptions channelOptions

The Channel option

System.Web.HttpCookieCollection cookieCollection

Collection of cookies

System.Security.Principal.IPrincipal user

The user that is posting

Returns
Type Description
System.Boolean

Trus if the user already has posted for the specifik XForm

MapActionToChanelOptions(String)

Map an action to corresponding ChannelOptions enumeration value

Declaration
public static ChannelOptions MapActionToChanelOptions(string action)
Parameters
Type Name Description
System.String action

An action on the XForm

Returns
Type Description
ChannelOptions

Enumeration value that corresponds to the action string

ParseActionValues(String)

Parses the XForm actions into an name value collection of actions

Declaration
public static NameValueCollection ParseActionValues(string actions)
Parameters
Type Name Description
System.String actions

The actions on the XForm

Returns
Type Description
System.Collections.Specialized.NameValueCollection

Collection of actions

Events

AfterSubmitPostedData

Declaration
public static event XFormDataEventHandler AfterSubmitPostedData
Event Type
Type Description
XFormDataEventHandler

BeforeSubmitPostedData

Declaration
public static event XFormDataEventHandler BeforeSubmitPostedData
Event Type
Type Description
XFormDataEventHandler