Record client time to a question response

More
6 months 2 days ago #155736 by blocka
blocka created the topic: Record client time to a question response
I'd like to create a question to store the current time.

Scenario is that I'd like a participant to see a short text question pre-populated with current time (not date, just time). They would just click to continue.

Later in my survey I'd repeat a short text question pre-populated with current time.

Figure this should be doable with JS -- just wondering if anyone can tell me how...

Please Log in to join the conversation.

More
5 months 4 weeks ago - 5 months 4 weeks ago #155777 by fvanderstarre
fvanderstarre replied the topic: Record client time to a question response
Hi, you can set up a short text question and set the deafult answer to : {date("H:i:s")} . This will show the current time when the question is displayed. No need for javascript here.
Alternatively, you could use a text display question using the above expression as (part of the) question text...
Last Edit: 5 months 4 weeks ago by fvanderstarre. Reason: Additional info

Please Log in to join the conversation.

More
5 months 4 weeks ago #155807 by DenisChenu
DenisChenu replied the topic: Record client time to a question response
Or : an equation question type : value are saved in your DB and user can not update it.

Maybe add {if(empty(self),date("H:i:s"),self.NAOK)}

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!