I would like to get a copy of the website for further testing because this is strange as you should be able to manually enter the date fields information.
While I create a duplicate would you mind remaking the form ? This is because on a fresh install i'm able to enter the date information manually.
It seems that we will need to use some custom code to convert your single line text to a date timestamp. The disadvantage of this is that we will need to convert it back from timestamp to a human readable date when viewing on the frontend.
add_action('cred_save_data', 'my_save_data_action',10,2);
function my_save_data_action($post_id, $form_data)
{
// if a specific form
if ($form_data['id']==3179)
{
if (isset($_POST['datum-praktijkdag']))
{
update_post_meta( $post_id, 'wpcf-datum-praktijkdag', strtotime($_POST['datum-praktijkdag']));
}
if (isset($_POST['beoordeling-op-werkplek']))
{
update_post_meta( $post_id, 'wpcf-beoordeling-op-werkplek', strtotime($_POST['beoordeling-op-werkplek']));
}
if (isset($_POST['beoordeling-theorie']))
{
update_post_meta( $post_id, 'wpcf-beoordeling-theorie', strtotime($_POST['beoordeling-theorie']));
}
}
}
The next step is to change 3179 to the ID of your form.
Next you will need to replace each of the date fields respectively with the following.
Yes you can but you will need to create separate hooks for each form. So duplicate the hook code per form renaming the function for each copy . Example
add_action('cred_save_data', 'form1',10,2);
function form1($post_id, $form_data)
add_action('cred_save_data', 'form2',10,2);
function form2($post_id, $form_data)
Then you need to create generic fields single line fields for each of the date fields and remove the original date field from the form.
Then just use the appropriate names in the functions and it should work.