callbackCloneField problem

Hi,
i am using GC Enterprise ver 3.0.14 with mysql (phpmyadmin)
i faced a problem when i using function callbackCloneField ,
eg:

if the default value for the field telephone_number in database is NULL then the callbackCloneField will not working.

Hello @CodeGC ,

Yes, you will need to transform the $fieldValue from null to an empty string so more or less something like this:

$fieldValue = $fieldValue ? $fieldValue : "";

If the field is nullable it should add the empty string field as null at the insert later. If not then maybe also use the callbackBeforeInsert function.

Let me know if that worked for you.

Regards
Johnny