template::data::validate::currency (public)

 template::data::validate::currency value_ref message_ref

Defined in packages/acs-templating/tcl/currency-procs.tcl

form validation for currency type. Should validate according to locale for example, the following forms: "$2.03" "Rs 50.42" "12.52L" "Y5,13c"

Parameters:
value_ref (required)
Reference variable to the submitted value
message_ref (required)
Reference variable for returning error messages
Returns:
true (1) if valid, false (0) if not

Testcases:
validate_currency
[ show source ]
Show another procedure: