Group: Forum Members
Posts: 7,
Visits: 27

In my experiment, I would like to start the participant off with 100 coins. Throughout the experiment, the participant encounters 'betting' trials where they are able to bet a certain number of their coins. I used radiobuttons to record the participants' bet.
Is it possible to keep track of the number of coins that were bet, and then inform the participant of how many coins they have left when they encounter the next betting page (100 minus the number of coins they have bet thus far)?
Below is my code for the betting radiobuttons and the betting surveypage:
<radiobuttons bet_radiobuttons> / options = ("1 Coin", "2 Coins", "3 Coins","4 Coins", "5 Coins", "6 Coins", "7 Coins", "8 Coins", "9 Coins", "10 Coins") / optionvalues = ("1", "2", "3", "4", "5", "6", "7", "8", "9", "10") / required = true </radiobuttons>
<surveypage bet> / questions = [1=bet_radiobuttons] / showpagenumbers = false / showquestionnumbers = false / stimulustimes = [1=how_many] / recorddata = true </surveypage>

Group: Administrators
Posts: 10K,
Visits: 62K

+xIn my experiment, I would like to start the participant off with 100 coins. Throughout the experiment, the participant encounters 'betting' trials where they are able to bet a certain number of their coins. I used radiobuttons to record the participants' bet. Is it possible to keep track of the number of coins that were bet, and then inform the participant of how many coins they have left when they encounter the next betting page (100 minus the number of coins they have bet thus far)? Below is my code for the betting radiobuttons and the betting surveypage: <radiobuttons bet_radiobuttons> / options = ("1 Coin", "2 Coins", "3 Coins","4 Coins", "5 Coins", "6 Coins", "7 Coins", "8 Coins", "9 Coins", "10 Coins") / optionvalues = ("1", "2", "3", "4", "5", "6", "7", "8", "9", "10") / required = true </radiobuttons> <surveypage bet> / questions = [1=bet_radiobuttons] / showpagenumbers = false / showquestionnumbers = false / stimulustimes = [1=how_many] / recorddata = true </surveypage> Yes. <values> / coins_left = 100 </values> <block example> / trials = [15 = bet] </block> <radiobuttons bet_radiobuttons> / caption = "You have <%values.coins_left%> coin(s) left. How may coins do you want to bet?" / options = ("1 Coin", "2 Coins", "3 Coins","4 Coins", "5 Coins", "6 Coins", "7 Coins", "8 Coins", "9 Coins", "10 Coins") / optionvalues = ("1", "2", "3", "4", "5", "6", "7", "8", "9", "10") / required = true </radiobuttons> <surveypage bet> / ontrialend = [ values.coins_left = radiobuttons.bet_radiobuttons.response; ] / questions = [1=bet_radiobuttons] / showpagenumbers = false / showquestionnumbers = false / recorddata = true </surveypage>

Group: Forum Members
Posts: 7,
Visits: 27

+x+xIn my experiment, I would like to start the participant off with 100 coins. Throughout the experiment, the participant encounters 'betting' trials where they are able to bet a certain number of their coins. I used radiobuttons to record the participants' bet. Is it possible to keep track of the number of coins that were bet, and then inform the participant of how many coins they have left when they encounter the next betting page (100 minus the number of coins they have bet thus far)? Below is my code for the betting radiobuttons and the betting surveypage: <radiobuttons bet_radiobuttons> / options = ("1 Coin", "2 Coins", "3 Coins","4 Coins", "5 Coins", "6 Coins", "7 Coins", "8 Coins", "9 Coins", "10 Coins") / optionvalues = ("1", "2", "3", "4", "5", "6", "7", "8", "9", "10") / required = true </radiobuttons> <surveypage bet> / questions = [1=bet_radiobuttons] / showpagenumbers = false / showquestionnumbers = false / stimulustimes = [1=how_many] / recorddata = true </surveypage> Yes. <values> / coins_left = 100 </values> <block example> / trials = [15 = bet] </block> <radiobuttons bet_radiobuttons> / caption = "You have <%values.coins_left%> coin(s) left. How may coins do you want to bet?" / options = ("1 Coin", "2 Coins", "3 Coins","4 Coins", "5 Coins", "6 Coins", "7 Coins", "8 Coins", "9 Coins", "10 Coins") / optionvalues = ("1", "2", "3", "4", "5", "6", "7", "8", "9", "10") / required = true </radiobuttons> <surveypage bet> / ontrialend = [ values.coins_left = radiobuttons.bet_radiobuttons.response; ] / questions = [1=bet_radiobuttons] / showpagenumbers = false / showquestionnumbers = false / recorddata = true </surveypage> Thank you so much!
