User Tools

Site Tools


csmaddtotals

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
csmaddtotals [2022/12/12 10:09] – [Add Function To Survey] admincsmaddtotals [2023/10/28 16:42] (current) – [grandMustTotal] admin
Line 4: Line 4:
 Functionality includes:\\ Functionality includes:\\
   * Optionally display grand total   * Optionally display grand total
 +  * Optionally require a specific grand total
   * Supports back button   * Supports back button
   * Automatically supports before and after symbols   * Automatically supports before and after symbols
Line 14: Line 15:
 {{ ::csmaddtotals-addrow.mp4?800 |csmAddTotals - Column Totals}} {{ ::csmaddtotals-addrow.mp4?800 |csmAddTotals - Column Totals}}
  
-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 =====
 ==== Add Function To Survey ==== ==== Add Function To Survey ====
Line 21: Line 22:
 <script>/*Paste csmAddTotals function JS here*/</script> <script>/*Paste csmAddTotals function JS here*/</script>
 </code> </code>
-Alternatively, paste the mfCsSliders function JS into a question's JS __outside__ the existing Qualtrics functions to make it available to questions on the page.+Alternatively, paste the csmAddTotals function JS into a question's JS __outside__ the existing Qualtrics functions to make it available to questions on the page.
 ==== JavaScript Function Call ==== ==== JavaScript Function Call ====
-Add JS to call the mfCsSliders function to apply it to the Slider question as follows:+Add JS to call the csmAddTotals function to apply it to the matrix question as follows:
 <code> <code>
 Qualtrics.SurveyEngine.addOnload(function() { Qualtrics.SurveyEngine.addOnload(function() {
Line 40: Line 41:
   * Matrix Type: Constant Sum   * Matrix Type: Constant Sum
   * Add Total Box: On   * Add Total Box: On
- 
 ===== Options ===== ===== Options =====
 ==== grandTotal ==== ==== grandTotal ====
Line 46: Line 46:
  
 Default: true Default: true
 +==== grandMustTotal ====
 +**grandMustTotal** is a number greater than 0 (zero) that the grand total must add to when **[[csmaddtotals#grandTotal|grandTotal]]** is true. When the grand total is not equal to grandMustTotal the next button is disabled and the grand total is displayed in red.  When the grand total is equal to grandMustTotal the next button is enabled and the grand total is displayed in green.
 +
 +Default: 0
 ====== Qualtrics Wiki ====== ====== Qualtrics Wiki ======
 [[start|Qualtrics Wiki]] [[start|Qualtrics Wiki]]
csmaddtotals.1670857770.txt.gz · Last modified: by admin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki