Script: Re-display Slider with Value

This article will show you how to re-display prior answers from a prior question in another slider


Background

You may want to re-display answers from a prior question into a slider. This article will show you how to do so. Below is an example:


Instructions

  1. Program your 'Slider' question
  2. In the 'Source Code Editor' of the 'Footnote' field, add the code below. 
    • See article: Source Code Editor
    • Replace the 'Q38' in the code below with the question number you are trying to re-display the answers in. There are 3 places total
    • Replace the "Q37:1" with the value you want to re-display
    • Replace the "Re-display Text" with the text you want to appear next to the re-displayed value
    • <script type="text/javascript">
      	var sliderValues = {
      		"Q38": ["[[Q37:1]]"]
      	};
      	var sliderLabels = {
      		"Q38": ["Re-display Text"]
      	};
      
      </script>
      <script id="slider-value-labels" type="text/javascript" src="//cdn.cmix.com/surveyContent/thirdparty/custom-functionality/slider-value-labels-v1.13.js?questions=Q38"></script>
      		
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us