Millisecond Forums

component

https://forums.millisecond.com/Topic36623.aspx

By gabriela.bulka - 11/12/2024

Hi I have a survey with 4 components (consent and demographic survey, IAT test, and three final questions):

Consent and Demographic survey:
<html Consent>
/items = ("Consent.htm")
/position = (50%, 40%)
/ size = (70%, 70%)
</html>

<text agree>
/items = ("Wyrażam zgodę na udział w badaniu.")
/position = (75%, 80%)
/ fontstyle = ("Arial", 1.50%, false, false, false, false, 5, 1)
/ txcolor = (white)
/txbgcolor = (black)
/size = (10%, 5%)
/ vjustify = center
</text>

<text disagree>
/items = ("Nie wyrażam zgody na udział w badaniu.")
/position = (25%, 80%)
/ fontstyle = ("Arial", 1.50%, false, false, false, false, 5, 1)
/ txcolor = (white)
/txbgcolor = (black)
/size = (10%, 5%)
/vjustify = center
</text>

<trial Consent>
/inputdevice = mouse
/stimulusframes = [1 = Consent, agree, disagree]
/validresponse = (agree, disagree)
/monkeyresponse = ("agree")
/ontrialend = [if (trial.Consent.response == "disagree") script.abort()]
</trial>

<block Consent>
/trials = [1 = Consent]
/ screencolor = white
/ txcolor = black
/ txbgcolor = white
</block>

<parameters>
/demographicpageinstructions = "Proszę odpowiedzieć na pytania dotyczące danych demograficznych."
/quitinstructions = "Aby w dowolnym momencie opuścić badanie, naciśnij klawisze Alt+E."
</parameters>

<radiobuttons gender>
/caption = "Płeć:"
/ options = ("Kobieta",
"Mężczyzna",
"Inna",
"Wolę nie odpowiadać")
/required = true
/orientation = vertical
</radiobuttons>

<textbox age>
/ caption = "Wiek (tylko liczba w latach np. 25):"
/ mask = positiveinteger
/ range = (18, 90)
/required = true
</textbox>

<radiobuttons education>
/caption = "Wykształcenie:"
/ options = ( 
"Podstawowe",
"Zawodowe",
"Średnie",
"Wyższe niepełne (w trakcie studiów)",
"Wyższe")
/required = true
/orientation = vertical
</radiobuttons>

<radiobuttons residence>
/caption = "Miejsce zamieszkania:"
/options = (
"Miasto powyżej 500 tys. mieszkańców",
"Miasto od 150 tys. do 500 tys. mieszkańców",
"Miasto od 50 tys. do 150 tys. mieszkańców",
"Miasto do 50 tys. mieszkańców",
"Wieś")
/required = true
</radiobuttons>


<surveypage Demographics1>
/caption ="<%parameters.demographicpageinstructions%>"
/questions = [1 = gender, age]
/showpagenumbers = false
/showquestionnumbers = false
</surveypage>

<surveypage Demographics2>
/caption ="<%parameters.demographicpageinstructions%>"
/questions = [1 = education, residence]
/showpagenumbers = false
/showquestionnumbers = false
</surveypage>


<survey Demographics>
/pages = [
    1 = Demographics1;
    2 = Demographics2
]
/onblockend = [values.completed = 1]
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/subcaptionfontstyle = ("Arial", 1.5%, false, false, false, false, 5, 1)
/itemfontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/ navigationbuttonfontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ navigationbuttonsize = (15%, 5%)
/ nextbuttonposition = (70%, 90%)
/ finishlabel = "Dalej"
/ nextlabel = "Dalej"
/ showbackbutton = false

</survey>

<expt>
/blocks = [1 = Consent; 2 = Demographics]
</expt>

three final questions:

<radiobuttons productFrequency>
/caption = "Jak często kupujesz produkty menstruacyjne?"
/options = ("Nigdy",
    "Rzadziej niż raz na kilka miesięcy",
    "Raz na kilka miesięcy",
    "Raz w miesiącu",
    "Częściej niż raz w miesiącu")
/required = true
/orientation = vertical
</radiobuttons>

<checkboxes menstruationProducts>
/caption = "Z jakich produktów menstruacyjnych korzystasz?"
/options = ("Podpaski jednorazowe",
"Podpaski wielorazowe",
    "Tampony",
    "Kubeczki menstruacyjne",
    "Majtki menstruacyjne",
    "Wkładki higieniczne",
            "Gąbki menstruacyjne",
            "Podpaski wielorazowe",
            "Inne",
            "Nie korzystam")
/required = true
/orientation = vertical
</checkboxes>

<radiobuttons samopoczucie>
/caption = "Jak oceniasz swoje samopoczucie?"
/options = ("Bardzo źle", "Źle", "Średnio", "Dobrze", "Bardzo dobrze")
/required = true
/orientation = vertical
</radiobuttons>

<surveypage ClientStatusPage>
/caption = "Proszę zaznaczyć odpowiedzi:"
/questions = [1 = productFrequency; 2 = menstruationProducts]
/showpagenumbers = false
/showquestionnumbers = false
</surveypage>

<surveypage SamopoczuciePage>
/questions = [1 = samopoczucie]
/showpagenumbers = false
/showquestionnumbers = false
</surveypage>


<surveypage ThankYouPage>
/ caption = "Bardzo dziękuję za udział w badaniu!
Kontakt: gbulka@st.swps.edu.pl"
/ txcolor = green
/ showpagenumbers = false
/ showquestionnumbers = false
</surveypage>

<survey ClientStatusSurvey>
/pages = [
    1 = ClientStatusPage;
    2 = SamopoczuciePage;
    3 = ThankYouPage
]
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ subcaptionfontstyle = ("Arial", 1.5%, false, false, false, false, 5, 1)
/ itemfontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ responsefontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/ navigationbuttonfontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ navigationbuttonsize = (15%, 5%)
/ nextbuttonposition = (70%, 90%)
/ finishlabel = "Zakończ"
/ nextlabel = "Dalej"
/ showbackbutton = false
</survey>

<expt>
/blocks = [
  1 = ClientStatusSurvey
]
</expt>


How to combine the expt component of the IAT test with the other expt components so that the examination takes place in order (informed consent, demographics, IAT and final questions)?

IAT expt:
<expt>
/ preinstructions = (iatintro)
/subjects = (1 of 2)
/groupassignment = groupnumber
/ blocks = [
  1=targetincompatiblepractice;
  2=attributepractice;
  3=incompatibletest1;
  4=incompatibletestinstructions;
  5=incompatibletest2;
  6=targetcompatiblepractice;
  7=compatibletest1;
  8=compatibletestinstructions;
  9=compatibletest2;
  10=summary
]
/onexptend = [values.completed = 1]
</expt>

<expt>
/ preinstructions = (iatintro)
/subjects = (2 of 2)
/groupassignment = groupnumber
/ blocks = [
  1=targetincompatiblepractice;
  2=attributepractice;
  3=incompatibletest1;
  4=incompatibletestinstructions;
  5=incompatibletest2;
  6=targetcompatiblepractice;
  7=compatibletest1;
  8=compatibletestinstructions;
  9=compatibletest2;
  10=summary
]
/onexptend = [values.completed = 1]
</expt>
By Dave - 11/12/2024

gabriela.bulka - 11/12/2024
Hi I have a survey with 4 components (consent and demographic survey, IAT test, and three final questions):

Consent and Demographic survey:
<html Consent>
/items = ("Consent.htm")
/position = (50%, 40%)
/ size = (70%, 70%)
</html>

<text agree>
/items = ("Wyrażam zgodę na udział w badaniu.")
/position = (75%, 80%)
/ fontstyle = ("Arial", 1.50%, false, false, false, false, 5, 1)
/ txcolor = (white)
/txbgcolor = (black)
/size = (10%, 5%)
/ vjustify = center
</text>

<text disagree>
/items = ("Nie wyrażam zgody na udział w badaniu.")
/position = (25%, 80%)
/ fontstyle = ("Arial", 1.50%, false, false, false, false, 5, 1)
/ txcolor = (white)
/txbgcolor = (black)
/size = (10%, 5%)
/vjustify = center
</text>

<trial Consent>
/inputdevice = mouse
/stimulusframes = [1 = Consent, agree, disagree]
/validresponse = (agree, disagree)
/monkeyresponse = ("agree")
/ontrialend = [if (trial.Consent.response == "disagree") script.abort()]
</trial>

<block Consent>
/trials = [1 = Consent]
/ screencolor = white
/ txcolor = black
/ txbgcolor = white
</block>

<parameters>
/demographicpageinstructions = "Proszę odpowiedzieć na pytania dotyczące danych demograficznych."
/quitinstructions = "Aby w dowolnym momencie opuścić badanie, naciśnij klawisze Alt+E."
</parameters>

<radiobuttons gender>
/caption = "Płeć:"
/ options = ("Kobieta",
"Mężczyzna",
"Inna",
"Wolę nie odpowiadać")
/required = true
/orientation = vertical
</radiobuttons>

<textbox age>
/ caption = "Wiek (tylko liczba w latach np. 25):"
/ mask = positiveinteger
/ range = (18, 90)
/required = true
</textbox>

<radiobuttons education>
/caption = "Wykształcenie:"
/ options = ( 
"Podstawowe",
"Zawodowe",
"Średnie",
"Wyższe niepełne (w trakcie studiów)",
"Wyższe")
/required = true
/orientation = vertical
</radiobuttons>

<radiobuttons residence>
/caption = "Miejsce zamieszkania:"
/options = (
"Miasto powyżej 500 tys. mieszkańców",
"Miasto od 150 tys. do 500 tys. mieszkańców",
"Miasto od 50 tys. do 150 tys. mieszkańców",
"Miasto do 50 tys. mieszkańców",
"Wieś")
/required = true
</radiobuttons>


<surveypage Demographics1>
/caption ="<%parameters.demographicpageinstructions%>"
/questions = [1 = gender, age]
/showpagenumbers = false
/showquestionnumbers = false
</surveypage>

<surveypage Demographics2>
/caption ="<%parameters.demographicpageinstructions%>"
/questions = [1 = education, residence]
/showpagenumbers = false
/showquestionnumbers = false
</surveypage>


<survey Demographics>
/pages = [
    1 = Demographics1;
    2 = Demographics2
]
/onblockend = [values.completed = 1]
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/subcaptionfontstyle = ("Arial", 1.5%, false, false, false, false, 5, 1)
/itemfontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/ navigationbuttonfontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ navigationbuttonsize = (15%, 5%)
/ nextbuttonposition = (70%, 90%)
/ finishlabel = "Dalej"
/ nextlabel = "Dalej"
/ showbackbutton = false

</survey>

<expt>
/blocks = [1 = Consent; 2 = Demographics]
</expt>

three final questions:

<radiobuttons productFrequency>
/caption = "Jak często kupujesz produkty menstruacyjne?"
/options = ("Nigdy",
    "Rzadziej niż raz na kilka miesięcy",
    "Raz na kilka miesięcy",
    "Raz w miesiącu",
    "Częściej niż raz w miesiącu")
/required = true
/orientation = vertical
</radiobuttons>

<checkboxes menstruationProducts>
/caption = "Z jakich produktów menstruacyjnych korzystasz?"
/options = ("Podpaski jednorazowe",
"Podpaski wielorazowe",
    "Tampony",
    "Kubeczki menstruacyjne",
    "Majtki menstruacyjne",
    "Wkładki higieniczne",
            "Gąbki menstruacyjne",
            "Podpaski wielorazowe",
            "Inne",
            "Nie korzystam")
/required = true
/orientation = vertical
</checkboxes>

<radiobuttons samopoczucie>
/caption = "Jak oceniasz swoje samopoczucie?"
/options = ("Bardzo źle", "Źle", "Średnio", "Dobrze", "Bardzo dobrze")
/required = true
/orientation = vertical
</radiobuttons>

<surveypage ClientStatusPage>
/caption = "Proszę zaznaczyć odpowiedzi:"
/questions = [1 = productFrequency; 2 = menstruationProducts]
/showpagenumbers = false
/showquestionnumbers = false
</surveypage>

<surveypage SamopoczuciePage>
/questions = [1 = samopoczucie]
/showpagenumbers = false
/showquestionnumbers = false
</surveypage>


<surveypage ThankYouPage>
/ caption = "Bardzo dziękuję za udział w badaniu!
Kontakt: gbulka@st.swps.edu.pl"
/ txcolor = green
/ showpagenumbers = false
/ showquestionnumbers = false
</surveypage>

<survey ClientStatusSurvey>
/pages = [
    1 = ClientStatusPage;
    2 = SamopoczuciePage;
    3 = ThankYouPage
]
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ subcaptionfontstyle = ("Arial", 1.5%, false, false, false, false, 5, 1)
/ itemfontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ responsefontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/ navigationbuttonfontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ navigationbuttonsize = (15%, 5%)
/ nextbuttonposition = (70%, 90%)
/ finishlabel = "Zakończ"
/ nextlabel = "Dalej"
/ showbackbutton = false
</survey>

<expt>
/blocks = [
  1 = ClientStatusSurvey
]
</expt>


How to combine the expt component of the IAT test with the other expt components so that the examination takes place in order (informed consent, demographics, IAT and final questions)?

IAT expt:
<expt>
/ preinstructions = (iatintro)
/subjects = (1 of 2)
/groupassignment = groupnumber
/ blocks = [
  1=targetincompatiblepractice;
  2=attributepractice;
  3=incompatibletest1;
  4=incompatibletestinstructions;
  5=incompatibletest2;
  6=targetcompatiblepractice;
  7=compatibletest1;
  8=compatibletestinstructions;
  9=compatibletest2;
  10=summary
]
/onexptend = [values.completed = 1]
</expt>

<expt>
/ preinstructions = (iatintro)
/subjects = (2 of 2)
/groupassignment = groupnumber
/ blocks = [
  1=targetincompatiblepractice;
  2=attributepractice;
  3=incompatibletest1;
  4=incompatibletestinstructions;
  5=incompatibletest2;
  6=targetcompatiblepractice;
  7=compatibletest1;
  8=compatibletestinstructions;
  9=compatibletest2;
  10=summary
]
/onexptend = [values.completed = 1]
</expt>

<expt>s run in alphabetical order if you have multiple in a script. So give them proper names.

Alternatively, and usually preferable:

Have each "component" as a separate script. Run them in order via a <batch> script.

https://www.millisecond.com/support/docs/v5/html/language/elements/batch.htm