Set focus on question text in the top

From Catglobe Wiki
Revision as of 13:04, 13 February 2009 by Phongha (talk | contribs) (New page: == Challenge == If the question text is to big or answer option is long then the respondent can not see the begining of the question text. == Solution == *In questionnaire template ed...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Challenge

If the question text is to big or answer option is long then the respondent can not see the begining of the question text.

Solution

  • In questionnaire template editor, choose the question you want edit and then go to the Properties - Edit question properties - Language dependent - Select javascript property

Code

quest.init = function(){

   document["query"][this.questions[0].label].focus();

}