- Posts: 5
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
Please Log in to join the conversation.
You wrote
- GROUPE Q1 (1 question)
- GROUPE CE 2.1 (4 questions)
- GROUPE CE 2.2 (4 questions)
- GROUPE CE 2.3 (4 questions)
- GROUPE CE 2.4 (4 questions)
- GROUPE JC1.1 (2 questions)
- GROUPE JC1.2 (2 questions)
Where are they?I need the subgroups Q2.1, Q2.2, Q2.3, and Q2.4
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
I forgot to mention that I needed to add a 4 socio-demographic questions : i) gender ii) age iii) education and iv) postcode.
<script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:complete',function() { var qID = {QID}; // Define the select element (dropdown) var prov1 = '<select id="prov1" class="form-control">\ <option value="">--Please, select--</option>\ <option value="1">male</option>\ <option value="2">female</option>\ <option value="3">something else</option>\ <option value="4">no answer</option>\ </select>'; var prov2 = '<select id="prov2" class="form-control">\ <option value="">--Please, select--</option>\ <option value="1">Level 1</option>\ <option value="2">Level 2</option>\ <option value="3">Level 3</option>\ <option value="4">no answer</option>\ </select>'; // Hide the text input $('#question'+qID+' .question-item:eq(0) input[type="text"]').hide(); $('#question'+qID+' .question-item:eq(2) input[type="text"]').hide(); // Insert the select elements if($('#question'+qID+' .question-item:eq(0) select').length == 0) { $('#question'+qID+' .question-item:eq(0) input[type="text"]').before(prov1); } if($('#question'+qID+' .question-item:eq(2) select').length == 0) { $('#question'+qID+' .question-item:eq(2) input[type="text"]').before(prov2); } // Initially select an option if the question has already been answered $('#question'+qID+' select').each(function(i) { if($.trim($(this).next('input[type="text"]').val()) != '') { $(this).val($.trim($(this).next('input[type="text"]').val())); } }); // Listener on the dropdowns - insert selected values into hidden text input $('#question'+qID+' select').change(function() { var thisInput = $(this).next('input[type="text"]'); $(thisInput).val($(this).val()); checkconditions($(thisInput).attr('value'), $(thisInput).attr('name'), 'text'); }); // Some styles $('#question'+qID+' select').css({ 'margin':'0.3em 0 0 0' }); }); </script>
Please Log in to join the conversation.