Welcome!

Sign in with your CogSci, Facebook, Google, or Twitter account.

Or register to create a new account.

We'll use your information only for signing in to this forum.

Supported by

form questions and sub-questions

BaaBobBaaBob Posts: 22
edited August 19 in OpenSesame

Hi All,

I'm relatively new to OpenSesame and Python, so forgive me if this is a question that's already been addressed somewhere. One reason I started to work with this as opposed to another software is because of the awesome tutorials and active forum.

I'm creating a survey to collect meta-data and a little bit of background on participants before an experiment with multiple choice and open questions. Right now I have everything running in a sequence in the blockloop. It works fine, running through all questions in order. However, I would like the answers to some of the multiple choice questions determine a follow up open ended question.

E.g.
Question 1:
What's your favorite letter?
a
b

    Question 2:
    if answer to Question 1 was "a", question 2 = "What do you think about American Politics in 2017?"
    if answer to Question 1 was "b", question 2 = "Tell me how to weave a hammock."

    If user answers "a", s/he's never prompted to talk about hammocks. Then question 3 is another multiple choice and question 4  contains another set of open ended questions, one of which would be asked depending on 3.

Is that a clear question? Again, if this is addressed somewhere, pls direct me to it, but so far my searches haven't led me to the right place.

best!

Comments

  • BaaBobBaaBob Posts: 22

    ....and, I didn't mean for that bit to print like code. live 'n learn.

  • eduardeduard Posts: 1,001

    Hi Bob,

    That's a nice question. Later today or this week, I try to make a little example to show you how this could be implemented. Be patient (but remind me in case I forget).

    Eduard

  • BaaBobBaaBob Posts: 22

    Great! Thank you. I would imagine it's based on if-elif-else statements, but I can't figure out how to structure the questions in the block loop such that the control flow does what I want it to. Cheers.

  • BaaBobBaaBob Posts: 22

    Hi Eduard. I had to take a mental break from my experiment design, but I'm back, and with a reminder about this...please, if you could add this example, I'd be grateful!

  • eduardeduard Posts: 1,001

    Super sorry for the delay!

    attached an experiment that implements somehting that you wants, right?

    Actually, I was surprised how easy it was.

    Good luck,

    Eduard

  • BaaBobBaaBob Posts: 22

    Thanks a lot; it's very helpful. It looks so simple once it's there in front of me.
    cheers!

Sign In or Register to comment.