PDA

View Full Version : Numeric field without comma



Thomas Yuan
January 6, 2014, 01:21 AM
Hi there,

Current numeric field displays ","

Is there a numeric or number field without the commas?
Or can i edit the numeric field to exclude ","

Much thanks,

Thomas

Steffen Buschkemper
January 6, 2014, 01:47 AM
Hi Thomas,

you can do it for example with jquery.
But i have a question - why you need a numeric field without commas?
What you want instead of commas.

Please explain it in an example.
Then there is a solution.

Regards
Steffen

Thomas Yuan
January 6, 2014, 05:14 AM
Hi Steffen,

The reason why i want numeric without commas is some fields are account numbers which are numeric only
this could be a account number or a numeric coupon number

hence I'd like to rid of the comma

Cheers,
Thomas

Viktor
January 6, 2014, 11:02 AM
Hello Thomas,

You can try change it yourself
go to ftp://includes>>classes>>rlCommot.class.php

find method: adaptValue

and code:



case 'number':
$out = number_format($value);
break;


and replace to:



case 'number':
$out = $value;
break;


or you can read about php function: number_format and add additional splitters if you want.

Thomas Yuan
January 6, 2014, 01:14 PM
Perfect! works perfect

Much thanks Viktor!!