widget:field-expander

Purpose

Defines a Field Expander widget that includes initially hidden form fields.

Contained by

Contains

Attribute groups

Example

<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/2002/06/xhtml2"
  xmlns:widget="http://www.volantis.com/xmlns/2006/05/widget"
  xmlns:si="http://www.volantis.com/xmlns/2006/01/xdime2/si"
  xmlns:xforms="http://www.w3.org/2002/xforms">
  <head>
    <title>widget:field-expander</title>
    <xforms:model>
      <xforms:instance>
        <si:instance>
          <si:item name="login"/>
          <si:item name="password"/>
        </si:instance>
      </xforms:instance>
    </xforms:model>
  </head>
  <body>
    <div>
      <widget:field-expander id="myFieldExpander">
        <xforms:input ref="name">
          <xforms:label>Name </xforms:label>
        </xforms:input>
        <xforms:group>
          <xforms:input ref="login">
            <xforms:label>Login</xforms:label>
          </xforms:input>
          <xforms:input ref="password">
            <xforms:label>Password</xforms:label>
          </xforms:input>
        </xforms:group>
      </widget:field-expander>
    </div>
  </body>
</html>

Related topics