If i don't alter this field on a form and save, the value in the database stays as null.
If i select a value and save the database, it updates correctly.
But if then go into the nulookup and delete all the text from the lookup object, so it is blank and then save, the value in the database is 0 and not null.
is there anyway i can alter this. i have tried adding a before save JavaScript event to try and catch it
Code: Select all
function nuBeforeSave()
{
if ($('#CompanyMainContactID').val()=='')
{
$('#CompanyMainContactID').val(null);
$('#CompanyMainContactID').change();
}
return true;
}