This is an old revision of the document!
Table of Contents
uncheckRadios-
The uncheckRadios function deselects radio buttons in question types that use them: multiple choice, nps, matrix, side-by-side, and rank order. Radio buttons can be deselected on click or on-demand
Functionality includes:
- Works on any question type with radio buttons
- On click functionality to deselect a selected radio button by clicking on it
- On demand functionality to deselect one or more radio buttons immediately
- Can be applied globally, by page, by question, or on specific radio buttons or groups of radio buttons (e.g., one column of a side-by-side)
This function is available for a reasonable fee. Contact TomG on the Qualtrics Community to learn more.
Set-up Instructions
Survey Header
Add the uncheckRadios function to the survey header to make it available to any question in the survey. Go to Look & Feel → General → Header edit →
and paste the provided uncheckRadios function JS:
<script>/*Paste uncheckRadios function JS here*/</script>
Alternatively, paste the uncheckRadios function JS into a question's JS outside the existing Qualtrics functions to make it available to questions on the page.
Multiple Choice Question
Question Settings
Any “Answers” setting is valid.
If “Answers” is set to either “Single Answer” or “Multiple Answer”, “Position” should be set to “Vertical” (fully compatible with mcColumns if a column layout is desired).
Question JavaScript
Add JS to call the mcAlphabetize function to apply it to the Multiple Choice question as follows:
Qualtrics.SurveyEngine.addOnload(function() {
mcAlphabetize(this);
});
For anchored choices, use the anchors option to specify the choice ids as an array in the order the choices should be listed. For example:
Qualtrics.SurveyEngine.addOnload(function() {
mcAlphabetize(this,{anchors:[7,8]});
});
Options
anchors
anchors specifies the array of choice ids that should be anchored to the bottom of the list.
For multi-select boxes, the choice ids are specified as “QR~QIDxx~id” where 'QIDxx' is the QID of the question and 'id' is the choice id. For all other answer types, the choice id is a number or a number preceded by 'x' for carry forward questions.
To identify choice ids, preview the question and use the Inspect feature of your browser.
Default: [] (nothing anchored)
