xforms:input

Purpose

A form control for text input.

Contains

Attributes

Attribute Description Type Default Options Use
inputmode

A hint to the browser about the preferred input mode for the control. The 'do-not-store' token indicates that the value the user enters into the form control should not be stored by the browser.

The mcs:security.input#DisableDataStoring feature allows page authors to query whether or not the browser can disable the autocomplete functionality.

xs:string   do-not-store  optional 

Attribute groups

Example

<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/2002/06/xhtml2"
  xmlns:si="http://www.volantis.com/xmlns/2006/01/xdime2/si"
  xmlns:xforms="http://www.w3.org/2002/xforms">
  <head>
    <title>xforms:input</title>
    <xforms:model id="login">
      <xforms:instance>
        <si:instance>
          <si:item name="firstName">joe</si:item>
        </si:instance>
      </xforms:instance>
    </xforms:model>
  </head>
  <body>
    <xforms:input model="login" ref="firstName">
      <xforms:label>Your Name:</xforms:label>
    </xforms:input>
  </body>
</html>

Related topics