|
Post by yiannis on Nov 13, 2020 19:19:56 GMT
I think you will find that the line
if $gender != 4 then goto Othergender
should be written as
if $gender == 4 then goto Othergender Your line says if a participant chooses anything but "other" then go the the page to specify gender which is the opposite of what you want to do.
P.S. If this is a real question I would modify it to say "How do you define gender identity"
|
|
|
Post by nhcoates on Nov 13, 2020 20:35:38 GMT
Thank you so much for this wonderful feedback.
For some reason, I still get the same thing (when I select "Male" or "Female" or "Non-Binary" it takes me to the "Other" screen. For some context, here is what follows the gender question:
l: gender t: radio o: require q: What is your gender? - Male - Female - Non-Binary - Other (please specify on next page)
l: t: jump - if $gender == 4 then goto Othergender
l: Othergender t: textline o: require q: Please specify 'Other' gender category - How would you define your gender identity?
l: ethnicity t: check o: require q: How would you describe yourself? Please select all that apply. - White/Caucasian - Black/African American - Native American - Asian - Latinx - Native Hawaiian/Pacific Islander - Other (please specify on next page)
l: t: jump - if $ethnicity == 7 then goto Otherethnicity
l: Otherethnicity t: textline o: require q: Please specify 'Other' ethnicity category - My ethnicity is
|
|
|
Post by nhcoates on Nov 15, 2020 7:49:36 GMT
Hi all,
I have two questions "one about gender, another about ethnicity" that have "Other" options, in which I would like participants to enter text. For some reason though, no matter what answer choice they choose, it will take them to the "Other" screen to input text. Here is my code for the two questions. Have I done something wrong? Perhaps it's because I require an answer?
l: gender t: radio o: require q: What is your gender? - Male - Female - Non-Binary - Other (please specify on next page)
l: t: jump - if $gender == 4 then goto Othergender
l: Othergender t: textline o: require q: Please specify 'Other' gender category - How would you define your gender identity?
l: ethnicity t: check q: How would you describe yourself? Please select all that apply. - White/Caucasian - Black/African American - Native American - Asian - Latinx - Native Hawaiian/Pacific Islander - Other (please specify on next page)
l: t: jump - if $ethnicity == 7 then goto Otherethnicity
l: Otherethnicity t: textline o: require q: Please specify 'Other' ethnicity category - My ethnicity is
|
|
|
Post by PsyToolkit on Nov 15, 2020 8:07:57 GMT
Here is how you can code it so that it works (the changed code is in bold):
l: gender t: radio o: require q: What is your gender? - Male - Female - Non-Binary - Other (please specify on next page)
j: if $gender < 4 then skip next
l: Othergender t: textline o: require q: Please specify 'Other' gender category - How would you define your gender identity?
l: ethnicity t: check q: How would you describe yourself? Please select all that apply. - White/Caucasian - Black/African American - Native American - Asian - Latinx - Native Hawaiian/Pacific Islander - Other (please specify on next page)
j: if $ethnicity < 7 then skip next
l: Otherethnicity t: textline o: require q: Please specify 'Other' ethnicity category - My ethnicity is
I personally recommend just an "other" box in the question, for example as given in this example:
Here is just that question as an example. I would recommend just have the option to self-describe, given that that imposes no constraints on people's response:
l: gender t: radio q: What is your gender? - Male - Female - {other,size=50} Prefer to self-describe (please specify)
|
|
|
Post by nhcoates on Nov 15, 2020 8:31:26 GMT
This worked perfectly. Thank you for your help!
|
|