sbsselectalphabetize
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| sbsselectalphabetize [2022/10/02 14:02] – [select] admin | sbsselectalphabetize [2023/09/25 07:49] (current) – admin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== sbsSelectAlphabetize - Alphabetize selects (aka dropsdowns) within a Side-by-Side on-the-fly ====== | + | ====== sbsSelectAlphabetize - Alphabetize selects (aka dropdowns) within a Side-by-Side on-the-fly ====== |
| The **sbsSelectAlphabetize** function arranges choices with side-by-side selects (aka dropdowns) into alphabetical order on-the-fly. It is useful for translated surveys where you want the choices in alphabetical order for every language. It is also useful if you don't want to manually alphabetize each time you add a dropdown choice within a side-by-side. | The **sbsSelectAlphabetize** function arranges choices with side-by-side selects (aka dropdowns) into alphabetical order on-the-fly. It is useful for translated surveys where you want the choices in alphabetical order for every language. It is also useful if you don't want to manually alphabetize each time you add a dropdown choice within a side-by-side. | ||
| Line 5: | Line 5: | ||
| * Alphabetizes based on current language | * Alphabetizes based on current language | ||
| * Supports anchoring of choices to the bottom of the list | * Supports anchoring of choices to the bottom of the list | ||
| - | * Can be used on any dropdown | + | * Can be used on all dropdowns or specific |
| - | This function is available for a reasonable fee. Contact **[[https:// | + | This function is available for a reasonable fee. Contact **[[https:// |
| + | |||
| + | To alphabetize choices in multiple choice questions on-the-fly, see **[[mcAlphabetize|mcAlphabetize]]**. | ||
| ===== Set-up Instructions ===== | ===== Set-up Instructions ===== | ||
| Line 33: | Line 35: | ||
| ===== Options ===== | ===== Options ===== | ||
| ==== anchors ==== | ==== anchors ==== | ||
| - | **anchors** specifies the array of choice ids that should be anchored to the bottom of the list. | + | **anchors** specifies the array of choice ids that should be anchored to the bottom of the list. Choice ids should be listed in the order they should be displayed. |
| To identify choice ids (i.e., option values), preview the question and use the Inspect feature of your browser. | To identify choice ids (i.e., option values), preview the question and use the Inspect feature of your browser. | ||
| Default: [] (nothing anchored) | Default: [] (nothing anchored) | ||
| - | ==== lang ==== | + | ==== langs ==== |
| - | **lang** is a two character | + | **langs** is an object for mapping |
| + | |||
| + | If you have created your own language code, you made need to add your language to the langs object if it doesn' | ||
| + | ==== qlang ==== | ||
| + | **qlang** is the Qualtrics language code string that should be used to do the alphabetization. By default, this is the current language of the survey. | ||
| Default: %%" | Default: %%" | ||
| Line 45: | Line 51: | ||
| **select** is the css selector for the selects to be alpabetize. | **select** is the css selector for the selects to be alpabetize. | ||
| - | Default: " | + | Default: |
| ====== Qualtrics Wiki ====== | ====== Qualtrics Wiki ====== | ||
| [[start|Qualtrics Wiki]] | [[start|Qualtrics Wiki]] | ||
sbsselectalphabetize.1664733721.txt.gz · Last modified: by admin
