[eluser]landitus[/eluser]
Hi, I was trying out the form validation
Greater Than like this:
Code:
$this->form_validation->set_rules('value','Value','required|max_length[128]|xss_clean|greater_than[299]');
I'm using this for currency. So I tested with the amount 300,50 and it shows a validation error. The error says it should be greater than 300. In Argentina (and many other countries I presume) currency numbers have the following format:
- 500,40
- 1.000,40
We use the comma to separate the cents and the dot to (optionally) notate thousands. Is there a way to extend the validation or set the separator to a custom value? I feel this could be useful to other international users.