Group: Administrators
Posts: 13K,
Visits: 104K
|
#1: Inquisit Lab will *not* redirect you to any URL and isn't supposed to. That'll only work on the web. #2: If have, of course, tested the code and verified it works under the current Inquisit release (4.0.8.0). If you are using an outdated version, please update your installation. Here's a bit of runnable example code:
<block myblock> / trials = [1=screenoutpage1; 2=mytrial] </block>
<surveypage screenoutpage1> / ontrialend = [if(radiobuttons.consent.response=="No") {defaults.finishpage="http://www.websiteaddress.com"; script.abort(); }] / questions = [1=consent] </surveypage>
<radiobuttons consent> /caption = "I have read and understood the information sheet and agree to participate in the study" / options = ("No","Yes") /required = true /orientation = vertical </radiobuttons>
<trial mytrial> / stimulusframes = [1=mytext] / validresponse = (57) </trial>
<text mytext> / items = ("The consent response was <%radiobuttons.consent.response%>. If you selected 'No' on the previous page, you should not be seeing this.") </text>
Select 'No' and the script will terminate. Select 'Yes' and you'll see the message.
|