As for your advice ( a while ago over a year), I have added this to the function file to handle ‘date received’ field. So I didn’t want to loose this functionality.
// Autofill a date
// https://codex.www.ads-software.com/Function_Reference/current_time
// https://php.net/manual/en/function.date.php
add_filter( ‘salesforce_w2l_field_value’, ‘salesforce_w2l_field_value_date_example’, 10, 3 );
function salesforce_w2l_field_value_date_example( $val, $field, $form ){
$forms = array( 1,2,3,4,5 ); // form ids to act upon
$field_name = ‘Date_Received__c’; // API Name of the field you want to auto check
if( in_array( $form, $forms ) && $field_name == $field && ! $_POST ){
//echo ” Today is: “.date(‘d/m/Y’);
return date(‘d/m/Y’); // or whatever date format you want
}
return $val;
}