Welcome to the LimeSurvey Community Forum

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

Time stamp when an individual question is answered

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 6 months ago - 4 years 6 months ago #188876 by tpartner
Try this:

Code:
<script>
  $(document).ready(function(){
if($('#question{QID} input:text:eq(0)').val() == '') {
      $('#question{QID} input:text:eq(0)').val(new Date());
    }
      {
     $('#question{QID}').hide();
  }
  });
</script>

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 4 years 6 months ago by tpartner.
The topic has been locked.
  • ChrisMcD
  • ChrisMcD's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 6 months ago #188887 by ChrisMcD
Perfect Tony ! That's exactly what I was looking for.

Many thanks for your help and hard work, you guys are doing fantastic job supporting the community !
The topic has been locked.
  • ChrisMcD
  • ChrisMcD's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 6 months ago - 4 years 6 months ago #188892 by ChrisMcD
I forgot to also post (for anyone in the future looking to do the same). This only appears to work when selecting a question "Short Free Text" I initially had it as "Long Free Text" which didn't work.
Last edit: 4 years 6 months ago by ChrisMcD. Reason: moe info
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 6 months ago #188911 by tpartner
Correct because the short-text question uses a text input element and the long-text question uses a textarea element.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose