Creates a text area where users can display and enter one or more lines of data.
The field's characteristics determine the number of lines, the width of each line, and whether the field is scrollable.
Field data can be protected from modification, made to display in the system password format (typically, hidden from view), and forced to conform to data type and formatting specifications.
acclabel, active, bgcolor, border, borderinfo, focused, fontcolor, fontinfo, format, help, itemlocation, itemnext, itemprevious, justify, keypress, label, labelbgcolor, labelborder, labelfontcolor, labelfontinfo, mouseover, next, previous, printbgcolor, printlabelbgcolor, printfontcolor, printlabelfontcolor, printvisible, readonly, rtf, scrollvert, scrollhoriz, size, suppresslabel, texttype, value, visible, writeonly, xformsenabled, xformsreadonly, xformsrequired, xformsvalid, xforms:input, xforms:secret, xforms:textarea
This is an example of a single line field item that allows entry of a numeric value (e.g. 10000). It formats the value according to locale-specific currency rules (e.g. $10,000.00), and stores the raw numeric value in the XForms data layer (e.g. 10000). The field provides a hint message to guide user input, and it also provides an alert message with immediate feedback if the user enters a value that violates the given XForms constraint (e.g. 1,000,000).
...
<xforms:instance xmlns="" id="loan">
<LoanRecord>
<Principal>10000</Principal>
...
</LoanRecord>
</xforms:instance>
...
<xforms:bind nodeset="Principal" constraint=". >= 1000 and . <= 100000"/>
...
<field sid="PrincipalItem">
<xforms:input ref="Principal">
<xforms:label>Principal of Loan:</xforms:label>
<xforms:hint>Enter the amount of money you will give the borrower.</xforms:hint>
<xforms:alert>The dollar value must be between 1000 and 100000</xforms:alert>
</xforms:input>
<format>
<datatype>currency</datatype>
</format>
</field>
This is an example of a single line field item that allows 20 characters of input. An initial value of 23000 has been defined for the field. When the form appears, the field will contain this value.
<field sid="income_field">
<label>Annual income</label>
<value>23000</value>
<size>
<width>20</width>
<height>1</height>
</size>
<fontinfo>
<fontname>Courier</fontname>
<size>12</size>
<effect>plain</effect>
</fontinfo>
<labelfontinfo>
<fontname>Helvetica</fontname>
<size>12</size>
<effect>plain</effect>
</labelfontinfo>
<labelfontcolor>blue</labelfontcolor>
</field>