Number Fields
The following field
element defines a
number
field with the name age
:
<field type="number" name="age"> <constraints> <minimum>18</minimum> <maximum>99</maximum> </constraints> <format>##</format> </field>
Note the following points:
-
The optional
constraints
child element specifies the allowed value range for the field. -
The optional
format
child element controls formatting in the input field in CUE.format
syntax is based on the JavaDecimalFormat
class. See https://docs.oracle.com/javase/8/docs/api/java/text/DecimalFormat.html for details.