Welcome to the LimeSurvey Community Forum

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

Time limit on a picture

More
4 years 11 months ago #205173 by midnightking
I am trying to create a facial expression recognition task.

For this I would like to be able to display a picture for a set time limit

After the picture disappears, I would like List (Dropdown) to appear.

Is this doable ?
The topic has been locked.
More
4 years 11 months ago #205175 by Joffm
Replied by Joffm on topic Time limit on a picture
Of course,
use a question of type "text display".
Set the timer to the desired time.
Or you trigger the "Next"-button by javascript after the desired time.

In the next question show your dropdown, if you really think it has to be a dropdown.

Here you find everything about question types
www.limesurvey.org/manual/Question_types

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
More
4 years 11 months ago #205178 by midnightking
I did that and the picture stays without disappearing.

The topic has been locked.
More
4 years 11 months ago #205180 by Joffm
Replied by Joffm on topic Time limit on a picture
Hi,
it is obvious that it will not work if both questions are on the same page.

If the are on the same page (in my opinion not necessary) you may use this script.
Code:
<script type="text/javascript" charset="utf-8">
$(document).on('ready pjax:scriptcomplete',function(){
    // Identify the questions
    var thisQuestion = $('#question'+{QID}+'');
    var nextQuestion1 = $(thisQuestion).nextAll('.list-dropdown:eq(0)');
    var nextQuestions = $(nextQuestion1);
 
         $('#ls-button-submit').hide();
    $(nextQuestions).hide();
      setTimeout(function () {
               $('#question{QID}').hide();
           $('#ls-button-submit').show();
         $(nextQuestions).show();
    }, 5000);
});
</script>

As I indicated, I don't think a drop-down is the appropriate type of question.
How many emotions are there to choose from?
So a list(radio) displayed in several columns might be better.
Then you have to exchange "list-dropdown" tp "list-radio"-

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose