XPE Forms GUI elements: Dropdown

Description

The Dropdown GUI element allows one to select one value out of a number of options. For example:


   <xf:field  required="no"  size="1"  maxlength="20"  qa:type="xs:string"  xmlns:qa="http://www.xml.org/pipe/xpe/xs/simple"  display="CC"  ui="dropdown"  ref="registration/cc"  xmlns:xf="http://www.xmlpipe.org/xpe/form" >
      <xf:option  value="Visa" />
      <xf:option  value="American Express" />
      <xf:option  value="Mastercard" />
   </xf:field>

This element also allows one to use external services. To use an external option service, one specifies the modelURI attribute:

Attributes

Attribute nameDescription
modelURI

If specified, the modelURI points to an external option service. The option service should output the following XML response:


   <options  xmlns="http://www.xmlpipe.org/xpe/manual" >
      <option  value="{option value}"  xmlns="" >
         Option display
      </option>
      +
   </options>