Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Record client time to a question response

More
8 years 2 months ago #155736 by blocka
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...
The topic has been locked.
More
8 years 2 months ago - 8 years 2 months ago #155777 by fvanderstarre
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: 8 years 2 months ago by fvanderstarre. Reason: Additional info
The topic has been locked.
More
8 years 2 months ago #155807 by DenisChenu
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 support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose