slidernumformat
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| slidernumformat [2024/08/22 09:13] – [scaleFormat] admin | slidernumformat [2025/02/13 07:25] (current) – [Add Function To Survey] admin | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| * Scientific (e.g., 1.000E3) | * Scientific (e.g., 1.000E3) | ||
| * Compact (e.g., $1K) | * Compact (e.g., $1K) | ||
| + | |||
| + | sliderNumFormat works with all Qualtrics layouts including "New Survey Experience" | ||
| Here is a simple example:\\ | Here is a simple example:\\ | ||
| Line 14: | Line 16: | ||
| 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 ===== | ||
| - | ==== Add Function To Survey ==== | + | ==== Survey Header ==== |
| + | === Add jQuery (only if using New Survey | ||
| + | < | ||
| + | <script src=" | ||
| + | </ | ||
| + | === Add sliderNumFormat Function | ||
| Add the sliderNumFormat function to the survey header to make it available to any question in the survey. Go to Look & Feel -> General -> Header edit -> {{:: | Add the sliderNumFormat function to the survey header to make it available to any question in the survey. Go to Look & Feel -> General -> Header edit -> {{:: | ||
| < | < | ||
| Line 36: | Line 43: | ||
| ===== Options ===== | ===== Options ===== | ||
| ==== format ==== | ==== format ==== | ||
| - | **format** is a object used to specify the Intl.NumberFormat formatting options. Options are specified the same way as in the **[[https:// | + | **format** is a object used to specify the Intl.NumberFormat() formatting options. Options are specified the same way as in the **[[https:// |
| Default: {} (empty, use Intl.NumberFormat() option defaults) | Default: {} (empty, use Intl.NumberFormat() option defaults) | ||
| Line 44: | Line 51: | ||
| Default: %%" | Default: %%" | ||
| ==== valueFormat ==== | ==== valueFormat ==== | ||
| - | **valueFormat** is an object that specifies the Intl.NumberFormat() formatting options for value numbers. Options are specified the same way as in the Intl.NumberFormat() options object. If the same option is included in the **[[sliderNumFormat# | + | **valueFormat** is an object that specifies the Intl.NumberFormat() formatting options for value numbers. Options are specified the same way as in the **[[https:// |
| Default: {} | Default: {} | ||
| ==== scaleFormat ==== | ==== scaleFormat ==== | ||
| - | **scaleFormat** is an object that specifies the Intl.NumberFormat() formatting options for scale numbers. Options are specified the same way as in the Intl.NumberFormat() options object. If the same option is included in the **[[sliderNumFormat# | + | **scaleFormat** is an object that specifies the Intl.NumberFormat() formatting options for scale numbers. Options are specified the same way as in the **[[https:// |
| Default: {} | Default: {} | ||
| ====== Qualtrics Wiki ====== | ====== Qualtrics Wiki ====== | ||
| [[start|Qualtrics Wiki]] | [[start|Qualtrics Wiki]] | ||
slidernumformat.1724332418.txt.gz · Last modified: by admin
