Group: Forum Members
Posts: 10,
Visits: 41
|
I've got it:))! Thanks sooo much! Cheers*nicole
|
Group: Administrators
Posts: 13K,
Visits: 104K
|
You run those <surveypage>s several times -- that's why you have to click the next button twice. For example, your <survey> element runs <surveypage PHQ1> <survey screening> / pages = [1=einleitung1; 2=einleitung2; 3=einleitung3; 4=einleitung4; 5=datenschutz; 6=PHQ1; 7=PHQ2; 8=TASK] ... </survey> but you also /branch to that page from <surveypage datenschutz>: <surveypage datenschutz> ... / branch = [if(radiobuttons.Sprache_age1.response=="ja") surveypage.PHQ1] ... </surveypage> This is what will happen: If you respond "ja" on <surveypage datenschutz>, the 5th page in your <survey>, that page will /branch directly to <surveypage PHQ1>. You respond and then your <survey> will do as told and run the 6th page -- which again is <surveypage PHQ1>. The other issues you mentioned boil down to the same thing. What you list in a <survey>'s /pages attribute and what you do via /branch are two separate things -- you should do either or, not both. You'll also want to make use of /skip attributes in your various pages. See https://www.millisecond.com/forums/FindPost5461.aspx
|
Group: Forum Members
Posts: 10,
Visits: 41
|
Hey Dave, thanks a lot! Please find my script attached. Thanks a lot in advance, cheers*nicole
|
Group: Administrators
Posts: 13K,
Visits: 104K
|
This question cannot be answered based on those code snippets. Please attach the *entire script* file (click on +Insert when writing a response to upload attachments). Prior to that please make sure your Inquisit installation is up to date (you should be running version 4.0.8.0).
|
Group: Forum Members
Posts: 10,
Visits: 41
|
Hey! I programmed the following (see below). The idea is, that the experiment ends, if people tick "3" in the PHQ-Item Nr. 9, so the next page will be the "say goodbye"- page. The filter works perfektly - the only problem is, that after PHQ1 I need to press the next button twice to come to the PHQ2 page. Any idea why this is? Also: sometimes after a last page nothing happens, when I press the Finish-label (page remains as it is) - sometimes I automatically getback to the inquisit-programming page? Any idea why?
<surveypage PHQ1> / caption = "Wie oft fühlten Sie sich im Verlauf DER LETZTEN 2 WOCHEN durch die folgenden Beschwerden beeinträchtigt:" / fontstyle = ("Verdana", 2%, true, false, false, false, 5, 0) / itemfontstyle = ("Verdana", 2%, false, false, false, false, 5, 0) / responsefontstyle = ("Calibri", 2%, false, false, false, false, 5, 0) / itemspacing = 4% / questions = [1=phq1; 2=phq2; 3=phq3; 4=phq4; 5=phq5] / showpagenumbers = false / showquestionnumbers = false / finishlabel = "Weiter" / navigationbuttonfontstyle = ("Verdana", -18, true, false, false, false, 5, 0) / nextbuttonposition = (46%, 90%) </surveypage>
<surveypage PHQ2> / caption = "Wie oft fühlten Sie sich im Verlauf DER LETZTEN 2 WOCHEN durch die folgenden Beschwerden beeinträchtigt:" / fontstyle = ("Verdana", 2%, true, false, false, false, 5, 0) / itemfontstyle = ("Verdana", 2%, false, false, false, false, 5, 0) / responsefontstyle = ("Calibri", 2%, false, false, false, false, 5, 0) / branch = [if(radiobuttons.phq9.response=="3") surveypage.PHQ_Suizid_Text] / itemspacing = 4% / questions = [1=phq6; 2=phq7; 3=phq8; 4=phq9] / showpagenumbers = false / showquestionnumbers = false / finishlabel = "Weiter" / navigationbuttonfontstyle = ("Verdana", -18, true, false, false, false, 5, 0) / nextbuttonposition = (46%, 90%) </surveypage>
|