Number Data

Description

Allows editing of numbers in either a text box or a list item.


Parameters

NameRequiredAvailable InDefault ValueDescription

[default] / name (Field Name)

 (tick)

 

The name of the number data field. Must be unique.

required

 (error)

false

If true, the field cannot be empty.

decimal (Allow decimal values)

 (error)

false

 If true, the field will allow decimal values to be entered.

Warning: Decimals are by their nature imprecise, and may occasionally result in some arithmetic errors with some numbers. Only use them if necessary, and don't expect minValue and maxValue to always be precise as boundaries.

minValue

 (error)

 

The minimum value the number may be (inclusive).

maxValue

 (error)

 

The maximum value the number may be (inclusive).

format (Display Format)

 (error)

 

The format the number should be output in when not being edited. See java.text.DecimalFormat for details. 

width

 (error)

 

The width of the field. e.g. "100%" or "250px".

Note: Only applies for forms mode.


Editor View

Tutorial Examples