User Tools

Site Tools


mctextentry

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
mctextentry [2022/12/11 14:12] adminmctextentry [2023/10/20 08:12] (current) – [horizPad] admin
Line 18: Line 18:
 {{ ::mcTextEntry_hide.mp4?800 |mcTextEntry Demonstration}} {{ ::mcTextEntry_hide.mp4?800 |mcTextEntry Demonstration}}
  
-This function is available for a reasonable fee. Contact **[[https://community.qualtrics.com/XMcommunity/messages/add/TomG|TomG]]** on the Qualtrics Community to learn more.+This function is available for a reasonable fee. Contact **[[https://community.qualtrics.com/inbox/conversation?with=373|TomG]]** on the Qualtrics Community to learn more.
 ===== Set-up Instructions ===== ===== Set-up Instructions =====
 ==== Survey Header ==== ==== Survey Header ====
-To make the function available to all questions in the survey, copy the function to the Survey Header inside a script tag: 
 Add the mcTextEntry function to the survey header to make it available to any question in the survey.   Go to Look & Feel -> General -> Header edit -> {{::icon_source.jpg?20|}} and paste the provided mcTextEntry function JS: Add the mcTextEntry function to the survey header to make it available to any question in the survey.   Go to Look & Feel -> General -> Header edit -> {{::icon_source.jpg?20|}} and paste the provided mcTextEntry function JS:
 <code> <code>
Line 43: Line 42:
 ===== Options ===== ===== Options =====
 ==== bgColor ==== ==== bgColor ====
-**bgColor** specifies the background color of the text entry boxes. If empty (""), the background color is automatically matched to the survey theme.+**bgColor** specifies the background color of the text entry boxes. If empty (%%""%%), the background color is automatically matched to the survey theme.
  
-Default: "" (empty)+Default: %%""%% (empty)
 ==== breakBeforeText ==== ==== breakBeforeText ====
 **breakBeforeText** specifies if the text entry boxes should be below (true) or on the same line (false) as the choice label text. The global break can be overridden for individual choices by adding the following html to the choice label text:\\ **breakBeforeText** specifies if the text entry boxes should be below (true) or on the same line (false) as the choice label text. The global break can be overridden for individual choices by adding the following html to the choice label text:\\
Line 58: Line 57:
 Default: false Default: false
 ==== horizPad ==== ==== horizPad ====
-**horizPad** is used to reduce the amount of label/text box left/right padding from the default for multiple choice questions in a horizontal position. Leave empty "" to use default padding.+**horizPad** is used to reduce the amount of label/text box left/right padding from the default for multiple choice questions in a horizontal position. Leave empty %%("")%% to use default padding.
  
-Default: 5px+Default: %%"5px"%%
 ==== multiColPad ==== ==== multiColPad ====
-**multiColPad** is used to reduce the amount of label/text box left/right padding from the default for multiple choice questions with columns. Leave empty "" to use default padding.+**multiColPad** is used to reduce the amount of label/text box left/right padding from the default for multiple choice questions with columns. Leave empty (%%""%%) to use default padding.
  
-Default: 5px+Default: %%"5px"%%
 ==== placeholder ==== ==== placeholder ====
-**placeholder** sets a global placeholder for all text entry boxes in the question. Set to empty ("") for no global placeholder. The global placeholder can be overridden for individual choices by adding the following html to the choice label text:\\+**placeholder** sets a global placeholder for all text entry boxes in the question. Set to empty (%%""%%) for no global placeholder. The global placeholder can be overridden for individual choices by adding the following html to the choice label text:\\
 <code> <code>
 <span data-textph="placeholder text">Choice text</span> <span data-textph="placeholder text">Choice text</span>
 </code> </code>
  
-Default: "" (empty)+Default: %%""%% (empty)
 ==== prefix ==== ==== prefix ====
-**prefix** sets a global prefix text for all text entry boxes in the question. Set to empty ("") for no global prefix text. The global prefix text can be overridden for individual choices by adding the following html to the choice label text:\\+**prefix** sets a global prefix text for all text entry boxes in the question. Set to empty (%%""%%) for no global prefix text. The global prefix text can be overridden for individual choices by adding the following html to the choice label text:\\
 <code> <code>
 <span data-textprefix="prefix text">Choice text</span> <span data-textprefix="prefix text">Choice text</span>
 </code> </code>
  
-Default: "" (empty)+Default: %%""%% (empty)
 ==== reqText ==== ==== reqText ====
 **reqText** automatically de-select multi-select choices if the text entry box is empty. **reqText** automatically de-select multi-select choices if the text entry box is empty.
Line 84: Line 83:
 Default: true Default: true
 ==== suffix ==== ==== suffix ====
-**suffix** sets a global suffix text for all text entry boxes in the question. Set to empty ("") for no global suffix text. The global suffix text can be overridden for individual choices by adding the following html to the choice label text:\\+**suffix** sets a global suffix text for all text entry boxes in the question. Set to empty (%%""%%) for no global suffix text. The global suffix text can be overridden for individual choices by adding the following html to the choice label text:\\
 <code> <code>
 <span data-textsuffix="suffix text">Choice text</span> <span data-textsuffix="suffix text">Choice text</span>
 </code> </code>
  
-Default: "" (empty)+Default: %%""%% (empty)
 ==== textHeight ==== ==== textHeight ====
-**textHeight** specifies the global height of the text entry boxes. Empty ("") uses default height. The global height can be overridden for individual choices by adding the following html to the choice label text:\\+**textHeight** specifies the global height of the text entry boxes. Empty (%%""%%) uses default height. The global height can be overridden for individual choices by adding the following html to the choice label text:\\
 <code> <code>
 <span data-texthgt="specify height">Choice text</span> <span data-texthgt="specify height">Choice text</span>
 </code> </code>
  
-Default: ""+Default: %%""%%
 ==== textWidth ==== ==== textWidth ====
 **textWidth** specifies the global width of the text entry boxes. The global width can be overridden for individual choices by adding the following html to the choice label text:\\ **textWidth** specifies the global width of the text entry boxes. The global width can be overridden for individual choices by adding the following html to the choice label text:\\
Line 103: Line 102:
 </code> </code>
  
-Default: "100%"+Default: %%"100%"%%
  
 //Note on mobile phones (screen width <= 480px)//: Qualtrics includes a css media rule "width:100%!important" that can't be overridden by the mcTextEntry function. It can be overridden by using a more specific rule (or rules). For example:  //Note on mobile phones (screen width <= 480px)//: Qualtrics includes a css media rule "width:100%!important" that can't be overridden by the mcTextEntry function. It can be overridden by using a more specific rule (or rules). For example: 
mctextentry.1670785952.txt.gz · Last modified: by admin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki