Main class for the XForms functionality.

Namespace:  EPiServer.XForms
Assembly:  EPiServer.XForms (in EPiServer.XForms.dll) Version: 5.2.375.236

Syntax

C#
[SerializableAttribute]
[XmlIncludeAttribute(typeof(XForm))]
public class XForm

Remarks

This class holds the XForm and its metadata. It also provides the functionality to Load and save it to the datalayer. The form is stored as a serialized XML document on the form:

CopyXML
<root>
  <model> 
    <instance>
      [instance values] 
    </instance>
  </model>
  [Xform controls and HTML]
</root>

Examples

The contents of the sample XForm "Vote"
CopyXML
<root>
  <model>
    <instance>
      <Vote />
    </instance>
  </model>
  <table>
    <tbody>
      <tr>
        <td>
          <xforms:select1 appearance="full" ref="Vote" required="true">
            <xforms:item>
              <xforms:label>Really great</xforms:label>
              <xforms:value>Really great</xforms:value>
            </xforms:item>
            <xforms:item>
              <xforms:label>Good</xforms:label>
              <xforms:value>Good</xforms:value>
            </xforms:item>
            <xforms:item>
              <xforms:label>Less good</xforms:label>
              <xforms:value>Less good</xforms:value>
            </xforms:item>
            <xforms:item>
              <xforms:label>Bad</xforms:label>
              <xforms:value>Bad</xforms:value>
            </xforms:item>
          </xforms:select1>
        </td>
      </tr>
      <tr>
        <td>
          <xforms:submit name="FormControl:_ctl1" method="" action="http://localhost/sql">
          <xforms:label>Vote</xforms:label>
          </xforms:submit>
        </td>
      </tr>
    </tbody>
  </table>
</root>

Inheritance Hierarchy

System..::.Object
  EPiServer.XForms..::.XForm

See Also