date range (Start Date, End Date) survey element?

19 views
Skip to first unread message

John Strickler

unread,
Jan 7, 2019, 4:38:26 PM1/7/19
to ResearchStack
Is there a survey element that would allow me to ask for a date range (Start Date, End Date) in a single question? If so, can you show me the example json for this survey question?

Aldo Israel NA

unread,
Jan 21, 2019, 2:42:35 PM1/21/19
to ResearchStack
No, you must create a custom step to do it. You can achieve this creating a subclass of org.researchstack.backbone.step.Step and the layout.

If you need more help feel free to contact me.

John Strickler

unread,
Jan 22, 2019, 10:06:59 AM1/22/19
to ResearchStack
Is there a way to incorporate a custom step into the survey elements provided by json in the skin framework?

Aldo Israel NA

unread,
Jan 22, 2019, 2:12:26 PM1/22/19
to ResearchStack
Seems like our projects are similar :P

Yes, it's possible, you have to create a method that returns a List of Steps, first loop into your json object (or POJO) and return each step depending on the type provided by your json then you create a subclass of OrderedTask (read the class and understand how it works) to receive that list... and that's it.
Reply all
Reply to author
Forward
0 new messages