Howdy, Stranger!

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

Supported by

Retrieving Variable Value and Inputting into Experiment Later

In my experiment I have 8 variables, which I am setting to have a random number (1-8) assigned to it through ordering (see Step 1 below). Then, I am using form_base to create image buttons and creating paths to .jpg's. (see Step 2 below). Then, participants click one of the images and I want to know the value of the variable attached to that button so I know which .jpg they picked since they are appearing in a random order (see Step 3 below). Up until here, everything works exactly as I need it to. For instance, if 'Face_1_Step1' has the value '8' attached to it and the participant selects the image attached to this variable 'Face_Selected_Step1' gives the value 8. I have verified this numerous times.

Now, later in the experiment, what I want to do is show them the image that they selected earlier next to a new image. 'Face_Selected_Step1' retrieves the value that I need (e.g., 8) in order to show the right .jpg (e.g., F8.jpg). Since I am showing photos, I am using form_base again but the code results in an error that always says 'variable Face_Selected_Step1 does not exist' (See Step 4 below). However, I know it exists because when I remove this step I can see it in my logged data (and it is correct). Also, when I do variable inspector it shows up.

Basically, I want to know which picture someone clicked (F1.jpg, F2.jpg, F3.jpg, etc), but these are appearing in a random order. Then, have that picture appear later next to a new picture.

Thank you so much in advance for the assistance and sorry if this is super confusing.











set timeout infinite

set spacing 10

set rows "1;1;1"

set only_render no

set margins "10;10;10;10"

set description "A generic form plug-in"

set cols "1;1;1"

set _theme gray

widget 0 0 1 1 image_button path="F[Face_1_Step1].jpg" var=F_Location1_Step1

widget 1 0 1 1 image_button path="F[Face_2_Step1].jpg" var=F_Location2_Step1

widget 2 0 1 1 image_button path="F[Face_3_Step1].jpg" var=F_Location3_Step1

widget 0 1 1 1 image_button path="F[Face_4_Step1].jpg" var=F_Location4_Step1

widget 2 1 1 1 image_button path="F[Face_5_Step1].jpg" var=F_Location5_Step1

widget 0 2 1 1 image_button path="F[Face_6_Step1].jpg" var=F_Location6_Step1

widget 1 2 1 1 image_button path="F[Face_7_Step1].jpg" var=F_Location7_Step1

widget 2 2 1 1 image_button path="F[Face_8_Step1].jpg" var=F_Location8_Step1

  • Note .jpgs are saved as (F1.jpg, F2.jpg, F3.jpg, etc) in file pool


if(var.F_Location1_Step1 == "yes"):

var.set("Face_Selected_Step1", var.get('Face_1_Step1'))

elif(var.F_Location2_Step1 == "yes"):

var.set("Face_Selected_Step1", var.get('Face_2_Step1'))

elif(var.F_Location3_Step1 == "yes"):

var.set("Face_Selected_Step1", var.get('Face_3_Step1'))

elif(var.F_Location4_Step1 == "yes"):

var.set("Face_Selected_Step1", var.get('Face_4_Step1'))

elif(var.F_Location5_Step1 == "yes"):

var.set("Face_Selected_Step1", var.get('Face_5_Step1'))

elif(var.F_Location6_Step1 == "yes"):

var.set("Face_Selected_Step1", var.get('Face_6_Step1'))

elif(var.F_Location7_Step1 == "yes"):

var.set("Face_Selected_Step1", var.get('Face_7_Step1'))

elif(var.F_Location8_Step1 == "yes"):

var.set("Face_Selected_Step1", var.get('Face_8_Step1'))


set timeout infinite

set spacing 10

set rows "1"

set only_render no

set margins "10;10;10;10"

set description "A generic form plug-in"

set cols "1;1"

set _theme gray

widget 0 0 1 1 image_button path="F[Face_Selected_Step1].jpg" var=F_Location1_Step2

widget 1 0 1 1 image_button path="WildCard.jpg" var=F_Location2_Step2


  • Hi,

    Not sure, but could this be due to a prepare/run failure? If all the forms are in the same sequence, then the variables needed to prepare later forms, will not exist yet if they are generated in the run phase of earlier forms. See here for details. I think the solution would be to separate the sequences, but also I am not sure about that.


    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 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