Schedule criteria not saving

Schedule criteria not saving

Hi,

I have a decision box on a form for sending out a task reminder 10 days before the event and the schedule code looks like this:


Task Reminder
{
Execute on 10 days before of Tasks[day_reminder == true].Due_Date at 01:00:00  
}


It saves fine and no errors appear but when you reload the schedule page it changes to this:


Task Reminder
{
Execute on 10 days before of Tasks[day_reminder].Due_Date at 01:00:00  
}




Need to get it run the script only when the decision box is ticked.....

Any ideas?

Thanks

Jon