User Tools

Site Tools


tinderstyle

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tinderstyle [2023/03/17 14:42] – [Survey Flow] admintinderstyle [2024/04/01 13:38] (current) admin
Line 36: Line 36:
 === Question Type === === Question Type ===
 The tinderStyle function __must__ added to a single answer multiple choice question with 2 or 3 choices. The function checks to make sure this requirement is met. It also checks to make sure the question is the only answerable question on the page (the only other questions on the page must be descriptive text, meta info, or timer). If these requirements are not met, the function exits without performing any actions. The tinderStyle function __must__ added to a single answer multiple choice question with 2 or 3 choices. The function checks to make sure this requirement is met. It also checks to make sure the question is the only answerable question on the page (the only other questions on the page must be descriptive text, meta info, or timer). If these requirements are not met, the function exits without performing any actions.
 +=== Question HTML ===
 +The question text should be set up as follows:
 +<code>
 +<div class="tinderQt">The question text goes here.</div>
 +<div id="tinderEl">${lm://Field/1}</div>
 +<style>.Skin { ${e://Field/opacity0} }</style>
 +</code>
 === JavaScript Function Call === === JavaScript Function Call ===
 To apply tinderStyle to a question, call the function from the question's JavaScript. For example: To apply tinderStyle to a question, call the function from the question's JavaScript. For example:
Line 46: Line 53:
 <code> <code>
 Qualtrics.SurveyEngine.addOnload(function() { Qualtrics.SurveyEngine.addOnload(function() {
- tinderStyle(this,{{timed:true,timeout:5}}); + tinderStyle(this,{timed:true,timeout:5});
 }); });
 </code> </code>
Line 66: Line 73:
 Default: %%"&#9668;"%% Default: %%"&#9668;"%%
 === right === === right ===
-The down arrow icon character or characters.+The right arrow icon character or characters.
  
 Default: %%"&#9658;"%% Default: %%"&#9658;"%%
Line 73: Line 80:
  
 Default: beside Default: beside
 +==== color ====
 +**color** is an object that specifies the text and background colors of the choice buttons. For example:\\
 +%%color:{left:{text:"#ffffff",bg:"#ff0000"},right:{text:"#ffffff",bg:"#2ea44f"},down:{text:"#ffffff",bg:"#f2d818"}}%%
 +=== down ===
 +The text and background color of the down (middle) choice. Down only applies to questions with 3 choices.
 +
 +Default: %%{text:"#ffffff",bg:"#f2d818"}%%
 +=== left ===
 +The text and background color of the left choice.
 +
 +Default: %%{text:"#ffffff",bg:"#ff0000"}%%
 +=== right ===
 +The text and background color of the right choice.
 +
 +Default: %%{text:"#ffffff",bg:"#2ea44f"}%%
 ==== timed ==== ==== timed ====
 **timed** specifies whether or not the question should timeout. Setting timed to true turns on timeout. When timing is turned on, the time remaining is displayed to the respondent. **timed** specifies whether or not the question should timeout. Setting timed to true turns on timeout. When timing is turned on, the time remaining is displayed to the respondent.
Line 78: Line 100:
 Default: false Default: false
 ==== timeout ==== ==== timeout ====
-**timeout** specifies the number of seconds the respondent has to answer the question when [[tinderStyle#timed|timed]] is true.+**timeout** specifies the number of seconds the respondent has to answer the question when **[[tinderStyle#timed|timed]]** is true.
  
 Default: 3 Default: 3
tinderstyle.1679078577.txt.gz · Last modified: by admin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki