Alert based on calculated time
Hi,
I write to support but have no answer to my problem. I have a script to show an alert based on calculated time (lookup field of meeting) "on input" of field. Now, with Creator update, I try the same script in other form but don't run. Anyone have similar problem with?
Thanks in advance.
Mike
if (input.lookup.toString() != "-Select-")
{
meetTime = FormMeetingPlace [PlaceMeeting == input.lookup.toString()];
timeDiffinMilliseconds = (meetTime.StartTimePlaceMeeting - zoho.currenttime);
timeDiffinHours = ((timeDiffinMilliseconds / (1000 * 60 * 60))).toLong();
if (timeDiffinHours < 0)
{
alert("Warning, meeting on air!");
}
else if (timeDiffinHours <= 96)
{
alert("Warning, meeting are starting!");
}
else if (timeDiffinHours >= 720)
{
alert("Warning, too far the star of meeting!");
}
}