﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 6  » Can't change finishpage in experiment</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Mon, 14 Sep 2026 13:38:43 GMT</lastBuildDate><ttl>20</ttl><item><title>Can't change finishpage in experiment</title><link>https://forums.millisecond.com/Topic36214.aspx</link><description>Hi all,&lt;br/&gt; &lt;br/&gt;I am using inquisit 6.6.1&lt;br/&gt; &lt;br/&gt;I would like to change the page my participants are redirected to when the experiment finishes based on whether they pass screening criteria. I have gone to the “Finish Page” section of the inquisit web interface and selected “Redirect to the default finish web page”, as I saw another forum post suggesting that this was required.&lt;br/&gt;Then, in the .iqx script for my first screening question, I have included this code in my first trial:  &lt;br/&gt;[code]&amp;lt;trial Consent1&amp;gt;&lt;br/&gt;/ontrialbegin = [defaults.finishpage = "https://www.google.com/yes/";]&lt;br/&gt;/ontrialend = [&lt;br/&gt;  if (trial.Consent1.response == "disagree") {&lt;br/&gt;&amp;nbsp; defaults.finishpage="&lt;a href="https://www.google.com/no/";"&gt;https://www.google.com/no/";&lt;/a&gt;&lt;br/&gt;&amp;nbsp; script.abort();&lt;br/&gt;  }&lt;br/&gt;]&lt;br/&gt;&amp;lt;/trial&amp;gt;[/code]&lt;br/&gt; &lt;br/&gt;What happens is that no matter whether or not the user clicks “agree” or “disagree”, at the end of my experiment they are redirected to the default inquisit finish page (i.e., “The session is complete, and your data were successfully uploaded. Thank you for your participation!”)&lt;br/&gt;I know that the if statement in the ontrialend chunk is being executed, because script.abort() is run, and the rest of my experiment is immediately halted. However, the finish page does not redirect to google. I notice that the finishpage I’m trying to set in ontrialbegin also doesn’t work.&lt;br/&gt;I have also tried setting a custom finish page in the inquisit web frontend settings. This works, but I still can’t change it the finish page from my code.&amp;nbsp;&lt;br/&gt; &lt;br/&gt;It appears to me that there is a bug in defaults.finishpage.&lt;br/&gt;Is there a step I have missed somewhere?&lt;br/&gt;&lt;br/&gt;Regards,&lt;br/&gt;Sebastian&lt;br/&gt;</description><pubDate>Mon, 13 May 2024 03:10:57 GMT</pubDate><dc:creator>sbeswick</dc:creator></item><item><title>RE: Can't change finishpage in experiment</title><link>https://forums.millisecond.com/Topic36216.aspx</link><description>&lt;blockquote data-id="36215" class="if-quote-wrapper" unselectable="on" data-guid="1715569832399" contenteditable="false" id="if_insertedNode_1715569832192"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36215" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="36215" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="36215" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 5/10/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36215"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36214" class="if-quote-wrapper" unselectable="on" data-guid="1715569832399" contenteditable="false" id="if_insertedNode_1715342173493"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36214" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="36214" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="36214" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;sbeswick - 5/10/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36214"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi all,&lt;br/&gt; &lt;br/&gt;I am using inquisit 6.6.1&lt;br/&gt; &lt;br/&gt;I would like to change the page my participants are redirected to when the experiment finishes based on whether they pass screening criteria. I have gone to the “Finish Page” section of the inquisit web interface and selected “Redirect to the default finish web page”, as I saw another forum post suggesting that this was required.&lt;br/&gt;Then, in the .iqx script for my first screening question, I have included this code in my first trial:  &lt;br/&gt;[code]&amp;lt;trial Consent1&amp;gt;&lt;br/&gt;/ontrialbegin = [defaults.finishpage = "https://www.google.com/yes/";]&lt;br/&gt;/ontrialend = [&lt;br/&gt;  if (trial.Consent1.response == "disagree") {&lt;br/&gt;&amp;nbsp; defaults.finishpage="&lt;a href="https://www.google.com/no/" ;"=""&gt;&lt;/a&gt;&lt;a href="https://www.google.com/no/" ;"=""&gt;&lt;a href="https://www.google.com/no/";"&gt;https://www.google.com/no/";&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;&amp;nbsp; script.abort();&lt;br/&gt;  }&lt;br/&gt;]&lt;br/&gt;&amp;lt;/trial&amp;gt;[/code]&lt;br/&gt; &lt;br/&gt;What happens is that no matter whether or not the user clicks “agree” or “disagree”, at the end of my experiment they are redirected to the default inquisit finish page (i.e., “The session is complete, and your data were successfully uploaded. Thank you for your participation!”)&lt;br/&gt;I know that the if statement in the ontrialend chunk is being executed, because script.abort() is run, and the rest of my experiment is immediately halted. However, the finish page does not redirect to google. I notice that the finishpage I’m trying to set in ontrialbegin also doesn’t work.&lt;br/&gt;I have also tried setting a custom finish page in the inquisit web frontend settings. This works, but I still can’t change it the finish page from my code.&amp;nbsp;&lt;br/&gt; &lt;br/&gt;It appears to me that there is a bug in defaults.finishpage.&lt;br/&gt;Is there a step I have missed somewhere?&lt;br/&gt;&lt;br/&gt;Regards,&lt;br/&gt;Sebastian&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36214"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;If you are running multiple scripts in a batch, the finsih page needs to be set at the batch script level at the very end, not in or by any of the task scripts.&lt;a class="if-quote-goto quote-link" href="#" data-id="36215"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;This worked, thanks Dave!</description><pubDate>Mon, 13 May 2024 03:10:57 GMT</pubDate><dc:creator>sbeswick</dc:creator></item><item><title>RE: Can't change finishpage in experiment</title><link>https://forums.millisecond.com/Topic36215.aspx</link><description>&lt;blockquote data-id="36214" class="if-quote-wrapper" unselectable="on" data-guid="1715342174615" contenteditable="false" id="if_insertedNode_1715342173493"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36214" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="36214" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="36214" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;sbeswick - 5/10/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36214"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi all,&lt;br/&gt; &lt;br/&gt;I am using inquisit 6.6.1&lt;br/&gt; &lt;br/&gt;I would like to change the page my participants are redirected to when the experiment finishes based on whether they pass screening criteria. I have gone to the “Finish Page” section of the inquisit web interface and selected “Redirect to the default finish web page”, as I saw another forum post suggesting that this was required.&lt;br/&gt;Then, in the .iqx script for my first screening question, I have included this code in my first trial:  &lt;br/&gt;[code]&amp;lt;trial Consent1&amp;gt;&lt;br/&gt;/ontrialbegin = [defaults.finishpage = "https://www.google.com/yes/";]&lt;br/&gt;/ontrialend = [&lt;br/&gt;  if (trial.Consent1.response == "disagree") {&lt;br/&gt;&amp;nbsp; defaults.finishpage="&lt;a href="https://www.google.com/no/" ;"=""&gt;&lt;a href="https://www.google.com/no/";"&gt;https://www.google.com/no/";&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;&amp;nbsp; script.abort();&lt;br/&gt;  }&lt;br/&gt;]&lt;br/&gt;&amp;lt;/trial&amp;gt;[/code]&lt;br/&gt; &lt;br/&gt;What happens is that no matter whether or not the user clicks “agree” or “disagree”, at the end of my experiment they are redirected to the default inquisit finish page (i.e., “The session is complete, and your data were successfully uploaded. Thank you for your participation!”)&lt;br/&gt;I know that the if statement in the ontrialend chunk is being executed, because script.abort() is run, and the rest of my experiment is immediately halted. However, the finish page does not redirect to google. I notice that the finishpage I’m trying to set in ontrialbegin also doesn’t work.&lt;br/&gt;I have also tried setting a custom finish page in the inquisit web frontend settings. This works, but I still can’t change it the finish page from my code.&amp;nbsp;&lt;br/&gt; &lt;br/&gt;It appears to me that there is a bug in defaults.finishpage.&lt;br/&gt;Is there a step I have missed somewhere?&lt;br/&gt;&lt;br/&gt;Regards,&lt;br/&gt;Sebastian&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36214"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;If you are running multiple scripts in a batch, the finsih page needs to be set at the batch script level at the very end, not in or by any of the task scripts.</description><pubDate>Fri, 10 May 2024 11:57:03 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>