************************************************************************************************************************************************************************************************************************************************************************************************* ************************************************************************************************************************************************************************************************************************************************************************************************** ELIGIBILITY AND DEMOGRAPHICS SURVEY ************************************************************************************************************************************************************************************************************************************************************************************************** ************************************************************************************************************************************************************************************************************************************************************************************************** Script author: Loukia Tzavella (tzavellal@cardiff.ac.uk) ************************************************************************************************************************************************************************************************************************************************************************************************** ************************************************************************************************************************************************************************************************************************************************************************************************** SURVEY ELEMENTS ************************************************************************************************************************************************************************************************************************************************************************************************** ************************************************************************************************************************************************************************************************************************************************************************************************** /pages = [1=eligibility_qs] /showpagenumbers = false /nextlabel = "Next" /finishlabel = "Check eligibility" /nextbuttonposition = (80%, 90%) /showbackbutton = false /navigationbuttonsize = (10%, 5%) /navigationbuttonfontstyle = ("Arial", 14px, true, false, false, false, 5, 0) /showquestionnumbers = false /branch = [if (values.valid_bmi==2 && values.repeat_bmi_count <= 3) survey.repeat_bmi] /screencolor = (242,242,242) /pages = [1=repeat_BMI] /screencolor = (242,242,242) /pages = [1=demographics_1; 2=demographics_2] /showpagenumbers = false /nextbuttonposition = (80%, 90%) /showbackbutton = false /navigationbuttonsize = (10%, 5%) /navigationbuttonfontstyle = ("Arial", 14px, true, false, false, false, 5, 0) /showquestionnumbers = false /screencolor = (242,242,242) /stimulusframes = [1=consent] /validresponse = (57) /items = ("consent.html") /size = (90%, 90%) /showborders = true /showscrollbars = true /position = (50%, 50%) ************************************************************************************************************************************************************************************************************************************************************************************************** ************************************************************************************************************************************************************************************************************************************************************************************************** /caption = "Please answer the following questions to check if you are eligible to participate in this study." /subcaption = "Answers to these questions are required.~n" /questions = [1=age_year, age_month, age_day ; 2=vision_criterion; 3= english_criterion; 4=diet_criterion] /txcolor = (0,0,0) /subcaptionfontstyle = ("Arial", 1.44%, false, false, false, false, 5, 0) /fontstyle = ("Arial", 1.57%, true, false, false, false, 5, 0) /responsefontstyle = ("Arial", 1.50%, false, false, false, false, 5, 0) /itemspacing = 2.5% /ontrialend = [if (dropdown.vision_criterion.response=="1") values.vision=1 else values.vision=2] /ontrialend = [values.english=dropdown.english_criterion.response] /ontrialbegin = [values.mm= substring(script.startdate, 0, 2)] /ontrialbegin = [values.dd= substring(script.startdate, 2, 2)] /ontrialbegin = [values.yy= substring(script.startdate, 4, 2)] /ontrialend = [if (values.yy=="16") values.current_year=2016] /ontrialend = [if (values.yy=="17") values.current_year=2017] /ontrialend = [values.month = textbox.age_month.response] /ontrialend = [values.day = textbox.age_day.response] /ontrialend = [values.year = textbox.age_year.response] /ontrialend = [if (values.current_year==2016 && values.year < 1998) values.above_18= 1] /ontrialend = [if (values.current_year==2017 && values.year < 1999) values.above_18= 1] /ontrialend = [if (values.current_year==2016 && values.year > 1998) values.above_18= 2] /ontrialend = [if (values.current_year==2017 && values.year > 1999) values.above_18= 2] /ontrialend = [values.month_diff = abs(values.mm) - values.month] /ontrialend = [values.day_diff= abs(values.dd) - values.day] /ontrialend = [values.year_diff = values.current_year - values.year] /ontrialend = [if (values.current_year==2016 && values.year==1998 && values.month_diff > 0) values.above_18=1] /ontrialend = [if (values.current_year==2016 && values.year==1998 && values.month_diff < 0) values.above_18=2] /ontrialend = [if (values.current_year==2016 && values.year==1998 && values.month_diff == 0 && values.day_diff < 0) values.above_18= 2] /ontrialend = [if (values.current_year==2016 && values.year==1998 && values.month_diff == 0 && values.day_diff > 0) values.above_18= 1] /ontrialend = [if (values.current_year==2016 && values.year==1998 && values.month_diff == 0 && values.day_diff == 0) values.above_18= 2] /ontrialend = [if (values.current_year==2017 && values.year==1999 && values.month_diff > 0) values.above_18=1] /ontrialend = [if (values.current_year==2017 && values.year==1999 && values.month_diff < 0) values.above_18=2] /ontrialend = [if (values.current_year==2017 && values.year==1999 && values.month_diff == 0 && values.day_diff < 0) values.above_18= 2] /ontrialend = [if (values.current_year==2017 && values.year==1999 && values.month_diff == 0 && values.day_diff > 0) values.above_18= 1] /ontrialend = [if (values.current_year==2017 && values.year==1999 && values.month_diff == 0 && values.day_diff == 0) values.above_18= 2] /ontrialend = [if (dropdown.diet_criterion.response=="1") values.diet=1 else values.diet=2] /caption = "Please answer the following questions.~n" /questions = [1=handedness; 2=gender; 3=ethnicity; 4=psych_disorders_criterion; 5=psych_drugs_criterion] /txcolor = (0,0,0) /subcaptionfontstyle = ("Arial", 1.44%, false, false, false, false, 5, 0) /fontstyle = ("Arial", 1.57%, true, false, false, false, 5, 0) /responsefontstyle = ("Arial", 1.50%, false, false, false, false, 5, 0) /itemspacing = 2.5% /ontrialend = [values.handedness= radiobuttons.handedness.response] /ontrialend = [if (radiobuttons.psych_disorders_criterion.response=="1") values.psych_disorders=1] /ontrialend = [if (radiobuttons.psych_disorders_criterion.response=="2") values.psych_disorders=2] /ontrialend = [if (radiobuttons.psych_disorders_criterion.response=="3") {values.psych_disorders=3; values.disorder=textbox.psych_dis_other.response}] /ontrialend = [values.psych_drugs=radiobuttons.psych_drugs_criterion.response] /ontrialend = [if (radiobuttons.gender.response=="6") values.gender=textbox.gender_other.response] /ontrialend = [if (radiobuttons.gender.response=="1") values.gender="female"] /ontrialend = [if (radiobuttons.gender.response=="2") values.gender="male"] /ontrialend = [if (radiobuttons.gender.response=="3") values.gender="trans_fem"] /ontrialend = [if (radiobuttons.gender.response=="4") values.gender="trans_male"] /ontrialend = [if (radiobuttons.gender.response=="5") values.gender="non_conf"] /ontrialend = [if (radiobuttons.ethnicity.response=="1") values.ethnicity="NA"] /ontrialend = [if (radiobuttons.ethnicity.response=="2") values.ethnicity="white"] /ontrialend = [if (radiobuttons.ethnicity.response=="3") values.ethnicity="mixed"] /ontrialend = [if (radiobuttons.ethnicity.response=="4") values.ethnicity="asian"] /ontrialend = [if (radiobuttons.ethnicity.response=="5") values.ethnicity="african"] /ontrialend = [if (radiobuttons.ethnicity.response=="6") values.ethnicity=textbox.ethnicity_other.response] /caption = "Please answer the following questions.~n" /questions = [1=lastmeal; 2=vegan_criterion; 3=eating_disorders_criterion; 4=hunger; 5=weight_1, weight_2, system_weight_1, system_weight_2; 6=height_1, height_2, system_height_1, system_height_2] /txcolor = (0, 0, 0) /itemspacing = 4% /subcaptionfontstyle = ("Arial", 1.44%, false, false, false, false, 5, 0) /fontstyle = ("Arial", 1.57%, true, false, false, false, 5, 0) /responsefontstyle = ("Arial", 1.50%, false, false, false, false, 5, 0) /ontrialend = [if (dropdown.vegan_criterion.response=="1") values.vegan=1 else values.vegan=2] /ontrialend = [if (radiobuttons.eating_disorders_criterion.response=="1") values.eating=1] /ontrialend = [if (radiobuttons.eating_disorders_criterion.response=="2") values.eating=2] /ontrialend = [if (radiobuttons.eating_disorders_criterion.response=="3") values.eating=3] /ontrialend = [if (radiobuttons.eating_disorders_criterion.response=="4") values.eating=4] /ontrialend = [if (radiobuttons.eating_disorders_criterion.response=="5") {values.eating=5; values.eating_disorder=textbox.eating_other.response}] /ontrialend = [if (dropdown.lastmeal.response=="1") values.lastmeal=1] /ontrialend = [if (dropdown.lastmeal.response=="2") values.lastmeal=2] /ontrialend = [if (dropdown.lastmeal.response=="3") values.lastmeal=3] /ontrialend = [if (dropdown.lastmeal.response=="4") values.lastmeal=4] /ontrialend = [if (dropdown.lastmeal.response=="5") values.lastmeal=5] /ontrialend = [values.hunger = slider.hunger.response] /ontrialend = [if (dropdown.system_height_1.response=="1" && dropdown.system_height_2.response=="1") values.height= abs(textbox.height_1.response * 100) + abs(textbox.height_2.response)] /ontrialend = [if (dropdown.system_height_1.response=="2" && dropdown.system_height_2.response=="2") values.height = (abs(textbox.height_1.response) * 30.48) + (abs(textbox.height_2.response) * 2.54)] /ontrialend = [if (dropdown.system_weight_1.response=="1" && dropdown.system_weight_2.response=="1") values.weight = abs(textbox.weight_1.response) + (abs(textbox.weight_2)/1000)] /ontrialend = [if (dropdown.system_weight_1.response=="2" && dropdown.system_weight_2.response=="2") values.weight= (abs(textbox.weight_2.response) * 0.45352) + (abs(textbox.weight_1.response)* 6.35029)] /ontrialend = [values.BMI = (values.weight / ((values.height / 100)*(values.height / 100)))] /ontrialend = [if (values.BMI >10 && values.BMI < 43) values.valid_bmi=1 else values.valid_bmi=2] /caption = "Your height and/or weight have not been properly registered. Please try again." /questions = [1=weight_1, weight_2, system_weight_1, system_weight_2; 2= height_1, height_2, system_height_1, system_height_2] /txcolor = (0, 0, 0) /itemspacing = 5% /subcaptionfontstyle = ("Arial", 1.44%, false, false, false, false, 5, 0) /fontstyle = ("Arial", 1.57%, true, false, false, false, 5, 0) /responsefontstyle = ("Arial", 1.50%, false, false, false, false, 5, 0) /showquestionnumbers = false /showpagenumbers = false /finishlabel = "Submit" /ontrialbegin = [values.repeat_bmi_count = values.repeat_bmi_count + 1] /ontrialend = [if (dropdown.system_height_1.response=="1" && dropdown.system_height_2.response=="1") values.height= abs(textbox.height_1.response * 100) + abs(textbox.height_2.response)] /ontrialend = [if (dropdown.system_height_1.response=="2" && dropdown.system_height_2.response=="2") values.height = (abs(textbox.height_1.response) * 30.48) + (abs(textbox.height_2.response) * 2.54)] /ontrialend = [if (dropdown.system_weight_1.response=="1" && dropdown.system_weight_2.response=="1") values.weight = abs(textbox.weight_1.response) + (abs(textbox.weight_2)/1000)] /ontrialend = [if (dropdown.system_weight_1.response=="2" && dropdown.system_weight_2.response=="2") values.weight= (abs(textbox.weight_2.response) * 0.45352) + (abs(textbox.weight_1.response)* 6.35029)] /ontrialend = [values.BMI = (values.weight / ((values.height / 100)*(values.height / 100)))] /ontrialend = [if (values.BMI >10 && values.BMI < 43) values.valid_bmi=1 else values.valid_bmi=2] ************************************************************************************************************************************************************************************************************************************************************************************************** ************************************************************************************************************************************************************************************************************************************************************************************************** ELIGIBILITY QUESTIONS ************************************************************************************************************************************************************************************************************************************************************************************************** ************************************************************************************************************************************************************************************************************************************************************************************************** /caption="Which option would best describe your ability to read and understand English?" /options = ("Native English speaker", "Bilingual", "I can read and understand well", "I cannot read and/or understand well") /optionvalues = ("1","2", "3", "4") /required = true /caption = "Do you have normal or corrected-to-normal vision?" /subcaption = "This includes normal colour vision" /options = ("Yes", "No") /optionvalues = ("1", "2") /required = true /caption = "Have you currently or in the past been diagnosed with any psychiatric and/or neurological disorders?" /subcaption = "If yes, please specify the diagnosed disorder." /order = sequence /options = ("Not sure", "No") /optionvalues = ("1", "2", "3") /other = psych_dis_other /required = true /orientation = horizontal /caption = "Yes" /mask = alphabetic /caption = "Do you have a past or current history of drug and/or alcohol abuse?" /options = ("Drug abuse", "Alcohol abuse", "Both", "None") /required = true /orientation= horizontal ************************************************************************************************************************************************************************************************************************************************************************************************** /caption = "Are you currently on a diet regimen and/or diet pills?" /options = ("Yes", "No") /optionvalues = ("1", "2") /required = true /caption = "Are you following a vegan or vegetarian diet?" /options = ("Yes", "No") /optionvalues = ("1", "2") /required = true /caption = "Have you currently or in the past been diagnosed with any eating disorders?" /order=sequence /options = ("Anorexia","Bulimia","Binge eating disorder","No") /other=eating_other /optionvalues=("1","2","3","4","5") /required=true /orientation=horizontal /caption = "Other" /mask= alphabetic /caption = "Height" /subcaption = "e.g., 1 m / 5 ft" /required = true /maxchars = 1 /size = (150px, 150px) /range = (0, 8) /position = (10%,60%) /caption = " " /subcaption = "e.g., 68 cm / 10 in" /maxchars = 3 /required = true /size = (150px, 150px) /range = (-1,999) /position = (27%,60%) /caption = "Weight" /subcaption = "e.g., 75 kg / 12 st" /required = true /size = (150px, 150px) /range = (-1,999) /position = (10%,70%) /caption = " " /subcaption = "e.g., 500 g / 5 lb" /required = false /range = (-1, 999) /size = (150px,150px) /position = (27%,70%) /caption = "m / ft" /options = ("m","ft") /optionvalues=("1","2") /required = true /size = (200px, 100px) /position = (21%,61%) /caption = "cm / in" /options = ("cm","in") /optionvalues=("1","2") /required = true /size = (200px, 100px) /position = (38%,61%) /caption = "kg / st" /options = ("kg","st") /optionvalues=("1","2") /size = (150px, 100px) /required = true /position = (21%,71%) /caption = "g / lb" /options = ("g","lb") /optionvalues=("1","2") /size = (200px, 100px) /required = false /position = (38%,71%) /caption = "How hungry are you right now?" /subcaption = " ~n" /increment = 1 /range = (1,9) /showticks = true /showtooltips = true /required = true /slidersize = (30%, 5%) /labels = ("Not at all", "Very") /caption = "How long ago did you last eat?" /options = ("Less than 1 hour ago", "1-2 hours ago", "2-3 hours ago","3-4 hours ago","More than 4 hours ago") /optionvalues = ("1", "2", "3", "4", "5") /required = true /caption = "To which gender identity do you most identify?" / orientation = horizontal /required = true /options = ("Female", "Male", "Transgender female", "Transgender male", "Gender variant/Non-conforming") /other = gender_other /optionvalues = ("1","2","3","4","5","6")/required = false /caption = "Which hand do you use for most of your daily activities, such as writing?" /subcaption = "If you are ambidextrous, please indicate which hand you would prefer to use for this study." /required=true /options = ("Right", "Left") /optionvalues = ("1", "2") /orientation = horizontal /caption = "Not listed" /mask= alphabetic /caption = " " /subcaption = "Month" /position = (20%, 15.8 %) /required = true /size = (5%, 4%) /mask = positiveinteger /range = (1, 12) /caption = " " /subcaption = "Day" /position = (27%, 15.8%) /size = (3%, 4%) /required = true /mask = positiveinteger /range = (1, 31) /caption = "Date of birth" /subcaption = "Year" /size = (8%, 4%) /required = true /mask = positiveinteger /range = (1926, 2009) /caption = "What is your ethnic group?" /subcaption = "Select one option which bests describes your ethnic group or background" /orientation = horizontal /options = ("Do not wish to answer", "White", "Mixed/Multiple ethnic groups", "Asian/Asian British", "Black/African/Caribbean/Black British") /optionvalues = ("1","2","3","4","5","6") /other = ethnicity_other /required = true /caption = "Other ethnic group" /mask = alphabetic ************************************************************************************************************************************************************************************************************************************************************************************************** ************************************************************************************************************************************************************************************************************************************************************************************************** ELIGIBILITY CHECK ************************************************************************************************************************************************************************************************************************************************************************************************** ************************************************************************************************************************************************************************************************************************************************************************************************** /trials = [1= eligibility_checks] /screencolor = (242,242,242) /trials=[1=helper_trial] /timeout = 16.667 /validresponse = (noresponse) /timeout = 16.667 /validresponse = (noresponse) /ontrialbegin = [if (values.english<4 && values.above_18==1 && values.vision==1 && values.diet==2) values.eligible=1 else values.eligible=2] /branch = [if (values.eligible == 1) trial.eligible else trial.not_eligible] ************************************************************************************************************************************************************************************************************************************************************************************************** ************************************************************************************************************************************************************************************************************************************************************************************************** /stimulusframes = [1=eligible] /validresponse = (57) /branch = [trial.consent] /stimulusframes = [1=noteligible] /validresponse = (57) /branch = [script.abort();] /items = ("Thank you for your interest in the study. Unfortunately, you are not eligible to participate in the experiment. Press the 'SPACEBAR' to quit.") /fontstyle = ("Arial", 25px, false, false, false, false, 5, 1) /position = (50%, 50%) /txbgcolor = (242, 242, 242) /items = ("You are eligible to participate in the study. Please press the 'SPACEBAR' to proceed.") /fontstyle = ("Arial", 25px, false, false, false, false, 5, 1) /position = (50%, 50%) /txbgcolor = (242, 242, 242) ************************************************************************************************************************************************************************************************************************************************************************************************** ************************************************************************************************************************************************************************************************************************************************************************************************** VALUES FOR ELIGIBILITY CRITERIA TO BE INCLUDED IN THE DATA OUTPUT ************************************************************************************************************************************************************************************************************************************************************************************************** ************************************************************************************************************************************************************************************************************************************************************************************************** /eligible = 0 /vision = 0 /diet = 0 /vegan = 0 /eating = 0 /psych_drugs = 0 /psych_disorders = 0 /english = 0 /valid_BMI = 0 /repeat_BMI_count = 0 /mm = "" /dd = "" /yy = "" /month = 0 /year = 0 /day = 0 /current_year = 0 /day_diff = 0 /month_diff = 0 /year_diff = 0 /above_18 = 0 /handedness = 0 ************************************************************************************************************************************************************************************************************************************************************************************************** VALUES FOR DEMOGRAPHICS TO BE INCLUDED IN THE DATA OUTPUT ************************************************************************************************************************************************************************************************************************************************************************************************** ************************************************************************************************************************************************************************************************************************************************************************************************** /gender = "" /ethnicity = "" /height = 0 /weight = 0 /BMI = 0 /lastmeal = 0 /hunger = 0 /disorder = "" /eating_disorder = "" ************************************************************************************************************************************************************************************************************************************************************************************************** ************************************************************************************************************************************************************************************************************************************************************************************************** ***************************************************************************************************END OF SCRIPT********************************************************************************************************************************************************************************** ************************************************************************************************************************************************************************************************************************************************************************************************** ************************************************************************************************************************************************************************************************************************************************************************************************** **************************************************************************************************************************************************************************************************************************************************************************************************