Class SubmitFragment
A button for posting xforms
Inherited Members
Namespace: EPiServer.XForms.Parsing
Assembly: EPiServer.XForms.dll
Version: 9.12.2Syntax
public class SubmitFragment : XFormsFragment
Examples
xforms:submit xforms:label
Constructors
SubmitFragment(ElementFragment)
Declaration
public SubmitFragment(ElementFragment fragment)
Parameters
Type | Name | Description |
---|---|---|
ElementFragment | fragment |
Properties
Action
Read action attribute from attributes
Declaration
public string Action { get; }
Property Value
Type | Description |
---|---|
System.String |
ActionSettings
A collection of name/values that are parsed from the value of the Action property.
Declaration
public NameValueCollection ActionSettings { get; }
Property Value
Type | Description |
---|---|
System.Collections.Specialized.NameValueCollection |
Remarks
The parsing is basically the same as the query string for a url.
ChannelOptions
The ChannelOptions that is used when calling XFormControl.SubmitForm.
Declaration
public ChannelOptions ChannelOptions { get; }
Property Value
Type | Description |
---|---|
ChannelOptions |
Label
Text of button
Declaration
public string Label { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Method
Http connection method. If not set, 'post' will be used
Declaration
public string Method { get; }
Property Value
Type | Description |
---|---|
System.String |
Receiver
The email address that and email is sent to.
Declaration
public string Receiver { get; }
Property Value
Type | Description |
---|---|
System.String |
Sender
The email address that is used as the sender of an email.
Declaration
public string Sender { get; }
Property Value
Type | Description |
---|---|
System.String |
Subject
A custom subject for an email message. If this is not set the subject defined on the form is used.
Declaration
public string Subject { get; }
Property Value
Type | Description |
---|---|
System.String |
SubmitId
Read name attribute
Declaration
[Obsolete("This attribute is not being used")]
public string SubmitId { get; }
Property Value
Type | Description |
---|---|
System.String |
UniqueName
The name of the fragment. This is a SHA256 hash of the Label and Action property and can be used as unique Id for buttons.
Declaration
public string UniqueName { get; }
Property Value
Type | Description |
---|---|
System.String |
Value
Value of the fragment. This are the same as the Label property
Declaration
public override string Value { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
XsltUrl
Xslt file that is used to transform the xml document to readable text
Declaration
public string XsltUrl { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
ParseFragment(Stack<HtmlFragment>, HtmlFragment)
Parse the label value from text fragment
Declaration
public override void ParseFragment(Stack<HtmlFragment> stack, HtmlFragment currentFragment)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.Stack<HtmlFragment> | stack | |
HtmlFragment | currentFragment |