Adding validations for calander

Support for our integrated Contact Manager, Calendar, and Project Tracker.
Posts: 6
Joined: Mon Sep 24, 2012 1:28 am
PostPosted: Wed Sep 26, 2012 2:56 am
I am facing some problem with Start date and end date Suppose If by mistake some one enters "End date" < "Start date" then the calendar shows unusual behavior I can understand that but how to avoid saving the incorrect value of "End date" this might be the basic step but I am a learner Please help
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Wed Sep 26, 2012 9:09 am
I think the nicest way to do this is to use a script trigger on all 4 fields (both date and time fields). We'd us an OnObjectValidate trigger and have it run a new script that simply checks if the start date / time is after the end date / time. Your script can warn the user and, perhaps, change the start or end time fields as well (in case your users ignore the warning).

Hope that helps,

John
John Sindelar
SeedCode

Return to SeedCode Calendar

Who is online

Users browsing this forum: No registered users and 3 guests

(855) SEEDCODE
[email protected]
Follow us: