Have an idea?

Visit Sawtooth Software Feedback to share your ideas on how we can improve our products.

Date Checking Start, End and Pick up

Dear All,

I have created 3 free formats of date pick on the same page like Start Date, End Date, and Pick-up date. With these 3 questions, I want to check as
"Start date < End date < Pick-up date".

How can I do that?
asked Aug 7 by Saroeun Bronze (2,715 points)
You're using the Calendar question from the Community Question Library, right?  One of the fields it records is a simple integer representing the selected time.  You can compare that value between the three questions to perform this verification.
Yes I used Calendar question and how to compare that value?

1 Answer

0 votes
Try adding script like this to your custom verification:

if (SSI_GetValue('Calendar1_Unix') >= SSI_GetValue('Calendar2_Unix')) {
    strErrorMessage = 'Error...';
answered Aug 10 by Zachary Platinum Sawtooth Software, Inc. (184,925 points)