Hi,
I use a data field in my form with datapicker.
When i add first time form without using data field in my db i see Null value but when i edit form and i want to delete data (i add data at first time but now i want to delete it) i cant to do this. there is no option. del and backspace dont work. When i use del button when i use right button of mause i clear the form field but it still save the same date.
I use a custom code at onSubmit with this code
Thanks form help ;P
I use a data field in my form with datapicker.
When i add first time form without using data field in my db i see Null value but when i edit form and i want to delete data (i add data at first time but now i want to delete it) i cant to do this. there is no option. del and backspace dont work. When i use del button when i use right button of mause i clear the form field but it still save the same date.
I use a custom code at onSubmit with this code
<?php
if ($form->data['data'] == '0000-00-00' or $form->data['data'] == '')
{
$form->data['data_zaplaty'] = NULL ;
}
?>
then dbSave but i still get the same date that a add at start :<
Thanks form help ;P