Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

[solved] what is the response variable for the ratings plugin? can only see count and time?

edited April 2014 in OpenSesame

I am wanting to log a rating via the ratings questionnaire plugin and i cannot see how to log which rating was selected. the only visible variables are count_ratings1 and time_ratings1.

Any thoughts?

Cheers,

Comments

  • edited 2:15PM

    It's response, but due to a bug in the plug-ins, it's not shown in the logger item. You can manually add it, by clicking 'Add custom variable' in the logger item, and typing response.

    The bug is a know issue, but hasn't been resolved as the questionnaire plug-ins are deprecated. For a potential replacement, you could try the form plug-ins if you like.

  • edited 2:15PM

    Thanks Edwin, so it would be,

    response_ratings1? for example?

  • edited 2:15PM

    No, it would simply be response.

  • edited 2:15PM

    yes but what if i have multiple rating items? by just typing in 'response', how would it know that it is in reference to that particular item?

  • edited April 2014

    Ah, yes, that's a tricky one. Either switch to the aforementioned form plug-ins, which allow you to specify a variable name. Alternatively, insert an inline_script item after each questionnaire item, containing the following script in the Run phase:

    # get the response, and set it under a different name
    exp.set("response_itemname", self.get("response"))
    

    Be sure to change itemname to the name of the questionnaire item after which you add the inline_script!

    Then, in the logger, simply specify to log everything, or select the variables you create in the inline_scripts, e.g. response_itemname rather than response.

  • edited 2:15PM

    ah ok i see what you're doing. Fantastic.

    Thanks again Edwin you've been very helpful today

  • edited 2:15PM

    My pleasure! I'll mark this as solved as well :)

Sign In or Register to comment.