instead of
if($w("#phone").value !==null&& $w("#phone").value.length >0)
You should do:
if($w("#phone").value)
and the same for the others.
instead of
if($w("#phone").value !==null&& $w("#phone").value.length >0)
You should do:
if($w("#phone").value)
and the same for the others.