Loading...
 
Skip to main content

History: Numeric Tracker Field

Source of version: 9 (current)

Copy to clipboard
            ! Numeric Tracker Field

This is a ((stub))

This field provides a one-line field for numeric input only. Prepend or append values may be alphanumeric. 


!!! Options in ((Tiki6))
(and eventually, also for ((Tiki7)) and ((Tiki8)) ) 
* Usage: samerow,size,prepend,append,decimals,dec_point,thousands
* Example1: 0,60,,hours
* Example2: 0,5,,h,2,c,,


|| Option | Description 
samerow | will display the next field or checkbox in the same row if a 1 is specified
size |  is the visible size of the field in characters
prepend |  is text that will be displayed before the field
append |  is text that will be displayed just after the field
decimals |  sets the number of decimal places
dec_point |  sets the separator for the decimal point (decimals must also be set). Use c for comma and s for space. %%% %%% (:arrow:) __Please note__: %%% This field affects just the display of numbers from Tiki to the user once they are already saved in the tracker, but NOT the way they have to be inserted through the browser into Tiki. The valid decimal separator __when inserting numbers__ may depend on site language and web browser: __Firefox and IE9 seem to accept only dots (.), while Chrome, Opera and Safari only commas (,)__.
thousands |  sets the thousands separator. Use c for comma and s for space. Setting only commas will result in no decimals and commas as the thousands separator ||

multiple options must appear in the order specified, separated by commas.



!!! Options in ((Tiki9))

|| Option | Description 
Same Row | Displays the next field on the same line.
Display Size | Visible size of the field in characters. Does not affect the numeric length.
Prepend | Text to be displayed prior to the numeric value.
Append | Text to be displayed after the numeric value.
Decimal Places | Amount of decimals to preserve before rounding.
Decimal separator __when displaying data__ | Single character. Use c for comma, d for dot or s for space.  Setting only commas will result in no decimals and commas as the thousands separator.%%% %%% (:arrow:) __Please note__: %%% This field affects just the display of numbers from Tiki to the user once they are already saved in the tracker, but NOT the way they have to be inserted through the browser into Tiki. The valid decimal separator __when inserting numbers__ may depend on site language and web browser: __Firefox and IE9 seem to accept only dots (.), while Chrome, Opera and Safari only commas (,)__.
Thousand separator when displaying data | Single character. Use c for comma, d for dot or s for space. When inserting data no separator is needed.
||

Related:
* State of the art of numeric fields in form in html5:
+  http://swatelier.info/at/forms/number.asp?n1=2%2C4&n2=2.4