Have an idea?

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

Calendar on the screen

I want to show calendar on the screen with my questions:

Q1. Interviewer type in purchase in the past 30 days?
=> Show date on the screen and date around the past 30 day.
=> Data format: Ex 10-Mar-2018

Please give detail to me.

Thanks in advance for any help you can provide me.
asked Mar 16, 2018 by Vanna

1 Answer

0 votes
Hi Vanna,

You can download calendar from below link:

http://sawtoothsoftware.com/community-question-library/1732-calendar

Regards
Saurabh
answered Mar 16, 2018 by Saurabh Aggarwal Gold (31,425 points)
Thanks, Saurabh.

This question has out-of-the-box support for formatting the date as "10-Mar-2018."  To require respondents to select a date from the past thirty days, you can add this line after the "nextText" line:

minDate: '-30d',
Hi Saurabh and Zachary,

Thank you for your answer. Can you show me for use code detail till to get data from calendar?

Best regards,
Vanna
Vanna, I'm not certain what you're asking.  Currently the question records the day, month, and year selected, a Unix timestamp, and a readable string, as you can see in the admin module.  Is there some other data you need the question to record?
...