Adding question data to output .csv file

29 views
Skip to first unread message

C Berebi

unread,
Oct 16, 2020, 9:05:32 AM10/16/20
to Minno.js
Hi everyone,

I have a questionnaire on Minno, that stores the correct answer for a given question within the question data. An example is underlined below: 

API.addQuestionsSet('quest',[
{
inherit : 'basicSelect',
name : 'ball',
stem: 'blabla?<br/><br/>'
        + '<button class="play-sound btn btn-default"><span class="glyphicon glyphicon-volume-up" aria-hidden="true"></span></button>',
data: {src: '<%=global.mediaURL%>ball.wav', corr : 2},

}];

The task works well, and it is clear that the data about the correct key response is stored somewhere, because participants are correctly excluded if they make too many mistakes. However, this data doesn't go into the csv file so that I can't see which trials were wrong (so that I can see, for example, if some are easier than others). 

Thank you in advance for any suggestions!
Best,
Si




Elad Zlotnick

unread,
Oct 18, 2020, 7:00:09 AM10/18/20
to Minno.js
Hi Si,

The logger should be saving all data fields.
Can you share your outcome CSV so that we can see what's going on?

best,
Elad

C Berebi

unread,
Oct 18, 2020, 7:11:38 AM10/18/20
to Elad Zlotnick, Minno.js
Sure!
A sample csv file is attached. I'm also attaching the full script of the task.

Thank you,
Si

--
You received this message because you are subscribed to a topic in the Google Groups "Minno.js" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/minnojs/LEkDQfJjenU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to minnojs+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/minnojs/2ba93a83-78f4-479b-80f8-c1c188b4b373n%40googlegroups.com.
pretest.txt
a576979c64e068bb34e3051a8c339171aafd7584.csv

Elad Zlotnick

unread,
Oct 18, 2020, 7:25:27 AM10/18/20
to Minno.js
Hi Si,

I'm not sure what the question is.
In the file that you sent, the response column holds the response to the question.
The name column holds the name of the question.
What further are you looking for?

best,
Elad

C Berebi

unread,
Oct 18, 2020, 7:39:35 AM10/18/20
to Elad Zlotnick, Minno.js
Thank you.
To be more precise, I'm looking for the data of the question (scr, corr). Is there a different way to list it, so that this data would be available?
There was no problem, for example, to compare the values of these variables to other variables. This is from the mgr.js file:
 {
mixer : 'branch',
      conditions: [
          {compare: 'global.out', operator : 'isTruthy'}],
           data: [{inherit : 'end1'}], 
           elseData: [...]
},
        {type:'postCsv',url:'csv.php'}
    ]);

C Berebi

unread,
Oct 18, 2020, 7:48:18 AM10/18/20
to Elad Zlotnick, Minno.js
I'm sorry, my previous message was a bit unclear: 'global.out' is a flag based on the comparison of 'corr' with the current trial.

Elad Zlotnick

unread,
Oct 18, 2020, 8:21:18 AM10/18/20
to Minno.js
Hi Si,

By default the player only saves the page data with each row.
In your case, you can add the following to your questions:

onSubmit: function(log,question){
    log.corr = question.data.corr;
                    log.scr = question.data.scr;
}

More complex situation may require a more complex solution.

best,
Elad

C Berebi

unread,
Oct 19, 2020, 2:30:50 AM10/19/20
to Elad Zlotnick, Minno.js
Thank you so much!
It worked perfectly.

Best,
Si

Reply all
Reply to author
Forward
0 new messages