On my form people can add a price. To create points between numeric values in some textfields i use a a custom scrip;
But this only works when i use a Field Default Value, in this case i use 0 .
But when people removes this 0 there is a error after submitting. How can i hide the Field Default Value?
<?php
$form->data['waarde_1'] = number_format($form->data['waarde_1'], 0, ',', '.');
$form->data['waarde_2'] = number_format($form->data['waarde_2'], 0, ',', '.');
$form->data['waarde_3'] = number_format($form->data['waarde_3'], 0, ',', '.');
?>
But this only works when i use a Field Default Value, in this case i use 0 .
But when people removes this 0 there is a error after submitting. How can i hide the Field Default Value?