Welcome, Guest
Username: Password: Remember me

TOPIC: Recording variable from javascript

Recording variable from javascript 3 years 5 months ago #59015

  • antigen
  • antigen's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 1
  • Karma: 0
Hi, I have a survey where the participant has to watch a video, and has the option to replay the video as many times as s/he wants. I have a counter for the video player in Javascript that keeps track of how many times the video has been watched, and I was wondering if it was possible to pass this value to LimeSurvey to be recorded with the results.

Thanks. :)
The administrator has disabled public write access.

Re: Recording variable from javascript 3 years 5 months ago #59080

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5325
  • Thank you received: 296
  • Karma: 249
You can add a short text or numerical question to Limesurvey and hide it using 1-2 lines of CSS. You can easily populate that field using Javascript, there are several examples at this forum and at manual -> workarounds ->JavaScript.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.131 seconds
Donation Image