Howdy, Stranger!

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

Supported by

Help with a simple custom form advancing on button click

edited February 2016 in OpenSesame

Hello. I've never used custom forms in OpenSesame before and I am having some trouble getting this one to work. The relevant portion of my experiment consists of the following, with the syntax for each pasted below:

warning_msg - a sketchpad that defines a warning message
http://pastebin.com/9rKrqSGe

response_DG - a custom form that allows a user to enter information, with a "Next" button below it
http://pastebin.com/dAjWLzW1

enforcement_script - an inline script that returns warning_msg if the user input in response_DG is not an integer between 0 and 40
http://pastebin.com/Dp3Fj1CC

The enforcement_script is borrowed from Lotje's excellent assistance on this thread:
http://forum.cogsci.nl/index.php?p=/discussion/197/solved-multiple-response-collection-on-one-page/p1

Currently, the form requires that I enter numbers, then press [Enter], then click the "Continue" button. Then it repeats the exact same form without advancing. Once I enter the number again, press [Enter] and click "Continue" a second time, it advances to the next steps in the experiment.

What I need is for the user to enter a number, and then tap "Continue" and advance to the next steps without repeating the form. I am using the Droid backend on a tablet, so the users will have to tap the screen.

I am hoping this is simple, but I haven't been able to figure it out from the help pages on forms and button widgets and from the forums.

Thanks!

P.S. A follow-up question I just remembered: is it possible to have a numeric input widget instead of a text_input, such that when users click in the box, the Android number pad pops up instead of the keyboard?

Comments

  • edited 10:59PM

    Hi fowweezer,

    about the number pad, I am not entirely sure this is possible. OpenSesame uses the pygame implementation for android to render all its interfaces, and if pygame doesn't offer the option of only presenting an Android number pad, it will not be possible in the experiment. You could write your own number pad implementation which is drawn and handled by OpenSesame, but this might not be worth the effort.

    About the form problem: I do not have an android tablet at my disposal to test this myself at the moment, so I will be just guessing here. Are you sure the form that is presented twice is not accidentally duplicated in the experiment overview? If you are presenting the same element two time consecutively, this is expected behavior. Have you also tried running the experiment on your computer, and with a different backend? Does the problem then occur as well?

    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