Overview #
Provides a decimal number input box.
Field Type Parameters: #
Decimals
(optional) – Number of digits to the right of the decimal point (the scale). Must be no larger than the Precision number of digits.- Default: 2
- Min: 1
- Max: 30
Precision
(optional) – Maximum number of digits (the precision).- Default: 20
- Min: 1
- Max: 65
Smart Input
(optional) – Allows input without pressing the decimal point key. Example: to type [12.67] just type [1267]. The decimal point will be placed automatically.- (No – default)
- smart: Yes
Value Processing Parameters: #
Basic usage:
{{ FieldName }}
- Result: 1.00 (if the value of the field is 1)
- Result: 0.00 (if the value of the field is 0 or NULL)
Usage with parameters:
{{ FieldName(Number of decimals, Decimal Separator, Thousand Separator) }}
Number of decimals
(optional) – Number of decimal places to display. Adds trailing zeros if needed (useful for formatting currency).- Default:
- Max: 30
Decimal Separator
(optional) – Character to use as the decimal separator, e.g., ‘,’ or ‘.’Thousand Separator
(optional) – Character to use as the thousand separator, e.g., ‘,’ or ‘.’ or ‘ ‘ (space)
Example:
{{ FieldName(3,".",",") }}
- Result: 1,234.500 (if the value of the field is 1234.5)
- Result: 0.000 (if the value of the field is 0 or NULL)
Pure Value (Unprocessed): #
Example:
{{ FieldName.value }}
- Result: 1234.5 (if the value of the field is 1234.5)
- Result: 0 (if the value of the field is 0)
- Result: NULL (if the value of the field is NULL)
Edit Record Parameters: #
Parameters for configuring the input element for decimal numbers.
Basic usage:
{{ FieldName.edit }}
Usage with parameters:
{{ FieldName.edit(CSS Class, Attributes) }}
CSS Class
(optional) – Name(s) of the CSS class(es).Attributes
(optional) – Optional attributes such as: disabled, onclick, onchange, etc.
Example:
{{ FieldName.edit("inputboxClass","readonly='readonly'") }}
Leave a Reply
You must be logged in to post a comment.