Hi guys,
i created this onChange for shipment date, but its not working always getting closed=1
$checkDate = {actual_shipment_date};
if(empty($checkDate)){
{closed} = 0;
}else{
{closed} = 1;
}
thanks in advance…
Hi guys,
i created this onChange for shipment date, but its not working always getting closed=1
$checkDate = {actual_shipment_date};
if(empty($checkDate)){
{closed} = 0;
}else{
{closed} = 1;
}
thanks in advance…
Re: how to check empty date field with onChange {HELP}
Try showing the actual value for $checkDate. Add “Echo $checkDate;” after “$checkDate = {actual_shipment_date};” to see the actual data.
JG
Re: how to check empty date field with onChange {HELP}
There is a macro to do that, you can try if it works:
if (sc_date_empty({my_date}) )
{
…
}
Re: how to check empty date field with onChange {HELP}
awesome,
working like a charm ;D