cleavenums
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| cleavenums [2022/08/12 12:26] – [fixedDecimal] admin | cleavenums [2025/05/07 11:17] (current) – [cleaveNums - Format numeric entries on-the-fly] admin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== cleaveNums - Format numeric entries on-the-fly ====== | ====== cleaveNums - Format numeric entries on-the-fly ====== | ||
| - | The cleaveNums function uses cleave.js to automatically format numeric fields with thousand separators, decimals, currency symbols, etc. in text entry (single or form), matrix, side-by-side or MC questions. It is **NOT** for use with constant sum or matrix constant sum questions (there is a different function | + | The cleaveNums function uses cleave.js to automatically format numeric fields with thousand separators, decimals, currency symbols, etc. in text entry (single or form), matrix, side-by-side or MC questions. It is **NOT** for use with constant sum or matrix constant sum questions (See [[cleavecsm|cleaveCSM]] |
| - | This function is available for a reasonable fee. Contact [[https:// | + | This function is available for a reasonable fee. Contact |
| ===== Set-up Instructions ===== | ===== Set-up Instructions ===== | ||
| Line 33: | Line 33: | ||
| ===== Options ===== | ===== Options ===== | ||
| ==== align ==== | ==== align ==== | ||
| - | **align** specifies the alignment of the number within the text entry box. Possible value are " | + | **align** specifies the alignment of the number within the text entry box. Possible value are %%" |
| - | Default: " | + | Default: |
| ==== cleaveparms ==== | ==== cleaveparms ==== | ||
| **cleaveparms** is an object that specifies the cleave parameters. See [[https:// | **cleaveparms** is an object that specifies the cleave parameters. See [[https:// | ||
| Line 42: | Line 42: | ||
| The thousands separator as a string. | The thousands separator as a string. | ||
| - | Default "," | + | Default |
| === cleaveparm: prefix === | === cleaveparm: prefix === | ||
| The number prefix as a string, such as a currency symbol. | The number prefix as a string, such as a currency symbol. | ||
| - | Default: "" | + | Default: |
| === cleavparm: noImmediatePrefix === | === cleavparm: noImmediatePrefix === | ||
| Boolean to not show prefix until a number is entered. | Boolean to not show prefix until a number is entered. | ||
| Line 62: | Line 62: | ||
| The decimal symbol as a string. | The decimal symbol as a string. | ||
| - | Default: " | + | Default: |
| === cleaveparm: numeralPositiveOnly === | === cleaveparm: numeralPositiveOnly === | ||
| Boolean to allow positive numbers only. | Boolean to allow positive numbers only. | ||
| Line 82: | Line 82: | ||
| The placeholder text for the input boxes. | The placeholder text for the input boxes. | ||
| - | Default: "" | + | Default: |
| ==== selector ==== | ==== selector ==== | ||
| CSS style selector for input boxes to format. If empty, all input boxes are formatted. | CSS style selector for input boxes to format. If empty, all input boxes are formatted. | ||
| - | Default: "" | + | Default: |
| ==== width ==== | ==== width ==== | ||
| The width of the input boxes. If empty, the question' | The width of the input boxes. If empty, the question' | ||
| - | Default: "" | + | Default: |
| + | ====== Qualtrics Wiki ====== | ||
| + | [[start|Qualtrics Wiki]] | ||
cleavenums.1660321569.txt.gz · Last modified: by admin
