- Posts: 153
- Thank you received: 8
Ask the community, share ideas, and connect with other LimeSurvey users!
<br/>
If you are using LimeSurvey version 2.5.x and you want to show absolute values in the slider tooltip (callout)...Is this possible to use the same values two times?
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { // Identify this question var thisQuestion = $('#question{QID}'); // Insert a fake tooltip (callout) setTimeout(function() { $('.answer-item', thisQuestion).each(function(i) { var thisValue = $('input[type="text"]', this).val(); $('.tooltip-inner', this).hide().after('<div class="tooltip-inner fake" />'); $('.tooltip-inner.fake', this).text(Math.abs(thisValue)); }); }, 100); // Listener on sliders $('input[type="text"]', thisQuestion).on('slide slideStop', function(event, ui) { var thisValue = $(this).val(); $(this).closest('.answer-item').find('.tooltip-inner.fake').text(Math.abs(thisValue)); }); }); </script>
As far as I know, that's not possible with a slider. You will need to recode the data in post-survey analysis.The slider scale should range from 9 to 9 without 0 (zero): 9 8 7 6 5 4 3 2 1 2 3 4 5 6 7 8 9 These are 17 nuances. Such a scale is required for the questionnaire because of the method (Analytical Hierarchy Process), it has mainly mathematical reasons of the method why there shouldn't be a 0 (zero) in the middle. Currently, the slider question has two times the same value (which is good), but the middle value is 0 (zero)