﻿<?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  » Tab order and set focus</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Thu, 03 Sep 2026 01:14:23 GMT</lastBuildDate><ttl>20</ttl><item><title>Tab order and set focus</title><link>https://forums.millisecond.com/Topic28835.aspx</link><description>Hi there,&lt;br/&gt;&lt;br/&gt;is it possible to set the focus on a specific textbox, when the page initially loads?&lt;br/&gt;&lt;br/&gt;Similar to the&amp;nbsp;.focus() method in JavaScript?&lt;br/&gt;&lt;br/&gt;Also can we set the tab order of elements on a page in Inquisit?&lt;br/&gt;&lt;br/&gt;TIA</description><pubDate>Thu, 23 Apr 2020 02:19:32 GMT</pubDate><dc:creator>CatK</dc:creator></item><item><title>RE: Tab order and set focus</title><link>https://forums.millisecond.com/Topic28837.aspx</link><description>&lt;blockquote data-id="28836" class="if-quote-wrapper" unselectable="on" data-guid="1587608366930" contenteditable="false" id="if_insertedNode_1587608365644"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="28836" 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="28836" 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="28836" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 4/22/2020&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-28836"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="28835" class="if-quote-wrapper" unselectable="on" data-guid="1587608366930" id="if_insertedNode_1587592362927" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="28835" 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="28835" 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="28835" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;CatK - 4/22/2020&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-28835"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi there,&lt;br/&gt;&lt;br/&gt;is it possible to set the focus on a specific textbox, when the page initially loads?&lt;br/&gt;&lt;br/&gt;Similar to the&amp;nbsp;.focus() method in JavaScript?&lt;br/&gt;&lt;br/&gt;Also can we set the tab order of elements on a page in Inquisit?&lt;br/&gt;&lt;br/&gt;TIA&lt;a class="if-quote-goto quote-link" href="#" data-id="28835"&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;There is no .focus() method, but there is a sneaky way to set the focus under some circumstances. If a textbox is set as the 1st question in the page's /questions, it should receive focus when the page loads. Suppose you have a page with three textboxes A, B and C, and wish to set the focus to the middle one (B), then you could do&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage example&amp;gt;&lt;br/&gt;/ questions = [1=b; 2=a; 3=c;]&lt;br/&gt;/ showquestionnumbers = false&lt;br/&gt;/ showpagenumbers = false&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;textbox a&amp;gt;&lt;br/&gt;/ caption = "a"&lt;br/&gt;/ position = (10%, 20%)&lt;br/&gt;&amp;lt;/textbox&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;textbox b&amp;gt;&lt;br/&gt;/ caption = "b"&lt;br/&gt;/ position = (10%, 40%)&lt;br/&gt;&amp;lt;/textbox&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;textbox c&amp;gt;&lt;br/&gt;/ caption = "c"&lt;br/&gt;/ position = (10%, 60%)&lt;br/&gt;&amp;lt;/textbox&amp;gt;&lt;br/&gt;&lt;br/&gt;Tab order, I believe, should also follow the order given in /questions, so it should be B -&amp;gt; A -&amp;gt; C -&amp;gt; Continue Button -&amp;gt; B -&amp;gt; A -&amp;gt; C -&amp;gt; ...in the above example.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="28836"&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;Thank you so much!</description><pubDate>Thu, 23 Apr 2020 02:19:32 GMT</pubDate><dc:creator>CatK</dc:creator></item><item><title>RE: Tab order and set focus</title><link>https://forums.millisecond.com/Topic28836.aspx</link><description>&lt;blockquote data-id="28835" class="if-quote-wrapper" unselectable="on" data-guid="1587592364052" id="if_insertedNode_1587592362927" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="28835" 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="28835" 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="28835" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;CatK - 4/22/2020&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-28835"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi there,&lt;br/&gt;&lt;br/&gt;is it possible to set the focus on a specific textbox, when the page initially loads?&lt;br/&gt;&lt;br/&gt;Similar to the&amp;nbsp;.focus() method in JavaScript?&lt;br/&gt;&lt;br/&gt;Also can we set the tab order of elements on a page in Inquisit?&lt;br/&gt;&lt;br/&gt;TIA&lt;a class="if-quote-goto quote-link" href="#" data-id="28835"&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;There is no .focus() method, but there is a sneaky way to set the focus under some circumstances. If a textbox is set as the 1st question in the page's /questions, it should receive focus when the page loads. Suppose you have a page with three textboxes A, B and C, and wish to set the focus to the middle one (B), then you could do&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage example&amp;gt;&lt;br/&gt;/ questions = [1=b; 2=a; 3=c;]&lt;br/&gt;/ showquestionnumbers = false&lt;br/&gt;/ showpagenumbers = false&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;textbox a&amp;gt;&lt;br/&gt;/ caption = "a"&lt;br/&gt;/ position = (10%, 20%)&lt;br/&gt;&amp;lt;/textbox&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;textbox b&amp;gt;&lt;br/&gt;/ caption = "b"&lt;br/&gt;/ position = (10%, 40%)&lt;br/&gt;&amp;lt;/textbox&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;textbox c&amp;gt;&lt;br/&gt;/ caption = "c"&lt;br/&gt;/ position = (10%, 60%)&lt;br/&gt;&amp;lt;/textbox&amp;gt;&lt;br/&gt;&lt;br/&gt;Tab order, I believe, should also follow the order given in /questions, so it should be B -&amp;gt; A -&amp;gt; C -&amp;gt; Continue Button -&amp;gt; B -&amp;gt; A -&amp;gt; C -&amp;gt; ...in the above example.&lt;br/&gt;</description><pubDate>Wed, 22 Apr 2020 22:17:41 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>