mctextentry
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| mctextentry [2022/12/11 14:12] – admin | mctextentry [2023/10/20 08:12] (current) – [horizPad] admin | ||
|---|---|---|---|
| Line 18: | Line 18: | ||
| {{ :: | {{ :: | ||
| - | This function is available for a reasonable fee. Contact **[[https:// | + | This function is available for a reasonable fee. Contact **[[https:// |
| ===== 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. | Add the mcTextEntry function to the survey header to make it available to any question in the survey. | ||
| < | < | ||
| Line 43: | Line 42: | ||
| ===== Options ===== | ===== Options ===== | ||
| ==== bgColor ==== | ==== bgColor ==== | ||
| - | **bgColor** specifies the background color of the text entry boxes. If empty ("" | + | **bgColor** specifies the background color of the text entry boxes. If empty (%%"" |
| - | Default: "" | + | Default: |
| ==== 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 "" | + | **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 %%("" |
| - | Default: 5px | + | Default: |
| ==== 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 "" | + | **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 (%%"" |
| - | Default: 5px | + | Default: |
| ==== placeholder ==== | ==== placeholder ==== | ||
| - | **placeholder** sets a global placeholder for all text entry boxes in the question. Set to empty ("" | + | **placeholder** sets a global placeholder for all text entry boxes in the question. Set to empty (%%"" |
| < | < | ||
| <span data-textph=" | <span data-textph=" | ||
| </ | </ | ||
| - | Default: "" | + | Default: |
| ==== prefix ==== | ==== prefix ==== | ||
| - | **prefix** sets a global prefix text for all text entry boxes in the question. Set to empty ("" | + | **prefix** sets a global prefix text for all text entry boxes in the question. Set to empty (%%"" |
| < | < | ||
| <span data-textprefix=" | <span data-textprefix=" | ||
| </ | </ | ||
| - | Default: "" | + | Default: |
| ==== 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 ("" | + | **suffix** sets a global suffix text for all text entry boxes in the question. Set to empty (%%"" |
| < | < | ||
| <span data-textsuffix=" | <span data-textsuffix=" | ||
| </ | </ | ||
| - | Default: "" | + | Default: |
| ==== textHeight ==== | ==== textHeight ==== | ||
| - | **textHeight** specifies the global height of the text entry boxes. Empty ("" | + | **textHeight** specifies the global height of the text entry boxes. Empty (%%"" |
| < | < | ||
| <span data-texthgt=" | <span data-texthgt=" | ||
| </ | </ | ||
| - | 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: | ||
| </ | </ | ||
| - | Default: " | + | Default: |
| //Note on mobile phones (screen width <= 480px)//: Qualtrics includes a css media rule " | //Note on mobile phones (screen width <= 480px)//: Qualtrics includes a css media rule " | ||
mctextentry.1670785952.txt.gz · Last modified: by admin
