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.0Syntax
public class XFormActionHelper
Constructors
XFormActionHelper()
Declaration
public XFormActionHelper()
Fields
SEND_MAIL
Declaration
public static string SEND_MAIL
Field Value
Type | Description |
---|---|
System. |
SEND_TO_CUSTOM_URL
Declaration
public static string SEND_TO_CUSTOM_URL
Field Value
Type | Description |
---|---|
System. |
SEND_TO_DATABASE
Declaration
public static string SEND_TO_DATABASE
Field Value
Type | Description |
---|---|
System. |
SEND_TO_DATABASE_EMAIL
Declaration
public static string SEND_TO_DATABASE_EMAIL
Field Value
Type | Description |
---|---|
System. |
Methods
DoAction(XFormData, XFormPostedData, Boolean)
Executes the action
Declaration
public static bool DoAction(XFormData xFormData, XFormPostedData xFormPostedData, bool throwException)
Parameters
Type | Name | Description |
---|---|---|
XForm |
xFormData | Value holder of XForm data |
XForm |
xFormPostedData | Posted data |
System. |
throwException | Boolean indicating if exception should be thrown on error |
Returns
Type | Description |
---|---|
System. |
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. |
formId | The id of the XForm |
Channel |
channelOptions | The Channel option |
System. |
cookieCollection | Collection of cookies |
System. |
user | The user that is posting |
Returns
Type | Description |
---|---|
System. |
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. |
action | An action on the XForm |
Returns
Type | Description |
---|---|
Channel |
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. |
actions | The actions on the XForm |
Returns
Type | Description |
---|---|
System. |
Collection of actions |
Events
AfterSubmitPostedData
Declaration
public static event XFormDataEventHandler AfterSubmitPostedData
Event Type
Type | Description |
---|---|
XForm |
BeforeSubmitPostedData
Declaration
public static event XFormDataEventHandler BeforeSubmitPostedData
Event Type
Type | Description |
---|---|
XForm |