blue-mouse
Member
Hi,
I can't remove "thousand separator" from my element that is a number.
I need input default value into this element and see it displayed without any thousand separator.
When my default value is displayed with thousand separator like:
26,812
or
26 812
when "save" data on form i get in my element: "26" not "26812" what i need.
That is no possibility to display numbers in that way:
26812.
Element data with number is saved on form using script:
I save on form value from variable: $currentserial5. I save this value to some number of records that i clone them.
Variable $currentserial5 get its value from displayed number ( unfortunatelly displayed with thousand separator) in field:
{ccjom_cc_kk_karta_rejestr___product_serial_num2}
Can you help to solve this?
I can't remove "thousand separator" from my element that is a number.
I need input default value into this element and see it displayed without any thousand separator.
When my default value is displayed with thousand separator like:
26,812
or
26 812
when "save" data on form i get in my element: "26" not "26812" what i need.
That is no possibility to display numbers in that way:
26812.
Element data with number is saved on form using script:
PHP:
$db =& JFactory::getDBO();
$quantity2 = (int) '{ccjom_cc_kk_karta_rejestr___zamow_quantity_pos_ordered}';
$currentserial2 = (int) '{ccjom_cc_kk_karta_rejestr___product_serial_num2}';
$idclone2 = (int) '{ccjom_cc_kk_karta_rejestr___id}';
$idclone4 = $idclone2 - $quantity2;
$currentserial4 = $currentserial2 - 2;
$i = 1;
for ($i = 1; $i <= $quantity2; $i++) {
$idclone5 = $idclone4 + 1;
$idclone4 = $idclone5;
$currentserial5 = $currentserial4 + 2;
$currentserial4 = $currentserial5;
$query1 = "UPDATE `ccjom_cc_kk_karta_rejestr` SET `product_serial_num2`= " .$currentserial5. " WHERE `id` = " .$idclone5. " " ;
$db->setQuery($query1);
$db->query();
}
I save on form value from variable: $currentserial5. I save this value to some number of records that i clone them.
Variable $currentserial5 get its value from displayed number ( unfortunatelly displayed with thousand separator) in field:
{ccjom_cc_kk_karta_rejestr___product_serial_num2}
Can you help to solve this?
Attachments
Last edited: