Howdy, Stranger!

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

Supported by

Check if form is filled in

edited December 2022 in OpenSesame

Hi,

I am relatively new in OpenSesame(to give a heads-up).

I created a form with rating scales using Inline python code. I wonder how to code a line that looks at whether all the rating scales are actually clicked on and, if not, an error message appears that says that not all answers are filled in. Not sure if that is even possible.

Any help with this would be much appreciated!

Thanks :)

Comments

  • Hi @Ruya,

    You find useful information on this here: https://osdoc.cogsci.nl/3.3/manual/forms/validation/

    In that example, you'll see how to implement input validation (for example preventing the OK button to become active if no age data has ben introduced).

    Hope this helps,

    Fabrice.

    Buy Me A Coffee

  • Hi Fabrice,

    Thank you for your fast reply! I looked at the example, but I did not really trigger an Aha moment for me (sadly still too much of a beginner). Basically, I have 4 rating scales that need a mouse click. I am not sure how to tweak the example in the link to say only if all rating scales have a mouse click will the button to continue become visible.

    Maybe I am struggling because I am not sure how to get the correct 'response' information from the rating scale function. As well as indicating if something is selected in the rating scale or not.

    Best,

    Ruya

  • Hi @Ruya ,


    This (rather old) thread might be of help:



    If this doesn't answer your question, could you please upload your script here so that we can have a closer look?


    Cheers,


    Lotje

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

  • Hi @lvanderlinden,


    Thanks for the reply :). I checked the code you sent me and filled it in, but nothing seemed to happen. I think the issue resides in the fact that I do not know what this part of the code refers to and how I can only refer it to a button on the form_base and tell it to appear based on the responses given to all rating scales.


    # Rerun the item (after preparing it):

    exp.items['form_base'].prepare()

    exp.items['form_base'].run()


    I put my experiment in the appendix. Thanks for taking your time to explain the code.

  • Hi Ruya,


    The aforementioned thread was a bit outdated. I attached an example on how to check if all questions are answered in the attached script. Do you think you'll be able to make a similar modification for the MC block?


    Cheers,


    Lotje


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

  • Hi Lotje,


    Yes, everything works now, and the code is very clear! Thank you so much again for you time explaining :D

    Best,


    Ruya

  • Hi @Ruya ,


    Ok, great to hear!

    Good luck with your research!


    Cheers,


    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