- Posts: 10634
- Thank you received: 3698
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
- Offline
- LimeSurvey Community Team
Less
More
4 years 6 months ago - 4 years 6 months ago #188876
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Time stamp when an individual question is answered
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 13
- Thank you received: 0
4 years 6 months ago #188887
by ChrisMcD
Replied by ChrisMcD on topic Time stamp when an individual question is answered
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 !
Many thanks for your help and hard work, you guys are doing fantastic job supporting the community !
The topic has been locked.
- ChrisMcD
- Topic Author
- Offline
- New Member
Less
More
- Posts: 13
- Thank you received: 0
4 years 6 months ago - 4 years 6 months ago #188892
by ChrisMcD
Replied by ChrisMcD on topic Time stamp when an individual question is answered
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10634
- Thank you received: 3698
4 years 6 months ago #188911
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Time stamp when an individual question is answered
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.