The Community forums are being phased out in favor of a new Slack group.
Add your email address below to get an invitation to join the community slack group

Slack Signup
Newsletter Optin
Help Desk

How to Enable Separate Values for Scales Using jQuery

Labels

This Discussion is public

Notifications

If you want to use separate values for scale fields, you can do so with a little jQuery added to the After Fields box in Customize HTML. The following script adds separate values AND tooltips to each radio button. This code will not work for scale fields that you have configured to display as stars. To make this work for you, substitute your own field ID for #field_3574-0, #field_3574-1, #field_3574-2, etc.

<script>
jQuery(document).ready(function ($) {

$('#field_3574-0').attr('title', 'Strongly Disagree');
$('#field_3574-1').attr('title', 'Disagree');
$('#field_3574-2').attr('title', 'Neutral');
$('#field_3574-3').attr('title', 'Agree');
$('#field_3574-4').attr('title', 'Strongly Agree');

$('#field_3574-0').val('Strongly Disagree');
$('#field_3574-1').val('Disagree');
$('#field_3574-2').val('Neutral');
$('#field_3574-3').val('Agree');
$('#field_3574-4').val('Strongly Agree');
});
</script>

<script>
$(function () {
$(document).tooltip();
});
</script>

Discussion closed.