Group: Forum Members
I'm trying to define a name to be presented later to participants which will depend on their gender (provided in a dropdown response). The item and text elements do end up defined, but they aren't based on the logic and instead simply go with the first definition listed. Specifically, using the following:
/ pages = [1=demographics1; 2=demographics2]
/ itemspacing = 20px
/ showpagenumbers = false
/ ontrialend = [if (dropdown.sex.response = "female") item.ambigscentarget.item = "Maria"; if (dropdown.sex.response = "male") item.ambigscentarget.item = "Thomas"]
/ numitems = 1
/ items = ambigscentarget
/ select = noreplace
ambigscentarget is always defined as "Maria" regardless of the participant's sex.
Any thoughts on how to adjust the logic to make things work?
Thanks in advance!