Welcome to the LimeSurvey Community Forum

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

Set time limit on ranking questions, arrays, etc...

  • gserra
  • gserra's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 11 months ago - 1 year 11 months ago #235735 by gserra
lease help us help you and fill where relevant:
Your LimeSurvey version: Version 5.4.0
Own server or LimeSurvey hosting: own server
Survey theme/template: fruity
==================

Hello,
I've just noticed that I can't set up a time limit for some of the questions (an example is Ranking or Array questions). In the question settings the option is not available at all.

Is there a way to enable it?

Thank you,
Gabriele
Last edit: 1 year 11 months ago by gserra.

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 11 months ago #235737 by tpartner
Insert a text-display question with a timer into the same group.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 11 months ago #235738 by Joffm
Hi,
you did not mention how you want to display your survey (question by question, group by group)
But there are several options.
1. We often recommend to display "group by group" with only one question in each group (to keep as much flexibility as possible).
Now add a question of type "text display" to this group. Set the timer in the text display question.
 

2. Use a javascript snippet to trigger the "Submit" button.
Insert this into the source code of the question
Code:
<script type="text/javascript" charset="utf-8">
      $(document).ready(function(){
            setTimeout(function () {
               $('#ls-button-submit').trigger('click')
          }, 5000);  // Nach 5 Sekunden, Wert ist in Millisekunden
    });
</script>

Joffm
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose