Howdy, Stranger!

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

Supported by

Collecting response from form base item

edited March 2021 in OpenSesame

Hi everyone,

I have created a custom rating scale using the form base item but it is not collecting any data. Is there something missing from my script? I have tried using a mouse logger and keyboard logger. The former doesn't collect any data and the latter just prevent my experiment from exiting. I don't know what I'm supposed to set for the correct response or allowed response section.

Also, how do I prevent the participant from clicking the next button before they have given their feedback for each categories?

Thank you.

--------------------------------------------------------------------------------------------

set timeout infinite
set spacing 10
set rows "1;1;1;1;1;1;1"
set only_render no
set margins "50;50;50;50"
set description "A custom rating scale"
set cols "1;1"
set _theme gray
widget 0 0 2 1 label text="Based on the news headlines that you had just read. How do you feel about SolarNRG?"
widget 0 1 2 1 rating_scale nodes="Heroic;Villainous" var=question1
widget 0 2 2 1 rating_scale nodes="Cruel;Kind" var=question2
widget 0 3 2 1 rating_scale nodes="Scandalous;Admirable" var=question3
widget 0 4 2 1 rating_scale nodes="Delighted;Disgusted" var=question4
widget 0 5 2 1 rating_scale nodes="Hate;Love" var=question5
widget 0 6 2 1 button text=Next

-------------------------------------------------------------------------------------------

Comments

  • Hi @Chiayce ,


    Thanks for your interest in OpenSesame and welcome to the forum! :)

    I couldn't open your experiment (I got the error message below). In the future, it's more convenient to upload your experiment directly here by clicking the paperclip icon.



    I have created a custom rating scale using the form base item but it is not collecting any data:

    You don't have to make the form_base item follow by a mouse_response item (or a keyboard_response item). But did you make sure to append a logger item to your experiment?


    Regarding the response variables: The rating_scale widget sets the response variable to the number of the option that has been clicked, where ‘0’ is the first option (zero-based indexing) and '1' is the second option. If no option has been selected, the response variable is set to ‘None’. So for example, if the variable 'question1' has the value '0', it means that the participant clicked on "Heroic". Does that make sense?


    Btw, just to be sure: form items are not supported by OSWeb, so I guess you won't run your experiment online, right?



    Also, how do I prevent the participant from clicking the next button before they have given their feedback for each categories?

    One possible solution is the following:

    • Append an inline_script item to your trial_sequence and make sure it appears right after your form_base item
    • And place something like the following code in its Run tab:


    # Check whether there are any un-answered questions:
    if None in (var.question1, var.question2, var.question3, \
        var.question4, var.question5):
        
        # If so, run the form_base again:
        items["form_base"].run()
        
        # And also, run this validation script again:
        items["inline_script"].run()
    


    I attached an example experiment.


    Hope this helps! Just let us know if you have any further questions.


    Best wishes,


    Lotje


    Did you like my answer? Feel free to Buy Me A Coffee :)

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games