- Posts: 25
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
<script type="text/javascript" charset="utf-8"> $(document).ready(function(){ $('#question{QID} input.radio').click(function() { checkconditions($(this).attr('value'), $(this).attr('name'), $(this).attr('type')); $('#movenextbtn, #movesubmitbtn').trigger('click'); }); $('#question{QID} .label-clickable').unbind(); $('#question{QID} .label-clickable').click(function() { $('#question{QID} input.radio').unbind(); var input = $(this).parent().find('input.radio'); $(input).trigger('click'); checkconditions($(input).attr('value'), $(input).attr('name'), $(input).attr('type')); $('#movenextbtn, #movesubmitbtn').trigger('click'); }); }); </script>
<script type="text/javascript" charset="utf-8"> $(document).ready(function(){ $('#question{QID} input[type="radio"]').on('click', function() { $('#ls-button-submit').trigger('click'); }); }); </script>
<script> $(document).ready(function() { $('#ls-button-previous').hide(); }); </script> <script> $(document).ready(function() { $('#ls-button-submit').hide(); }); </script>
csknfrt wrote: Thank you tpartner it is working perfect! I have 2 question.
- May I use other question types like stars and slider?
- May I hide next, previous or send button on the question when i use this solition?
<script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:scriptcomplete',function(){ $('#question{QID} input[type="radio"]').on('change', function() { setTimeout(function() { $('#ls-button-submit').trigger('click'); }, 250); }); }); </script>
<script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:scriptcomplete',function(){ $('#question{QID} input[type="text"]').on('slideStop', function(e){ $('#ls-button-submit').trigger('click'); }); }); </script>
<script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:scriptcomplete',function(){ $('#navigator-container button').hide(); }); </script>
Hello, A new response was submitted for your survey 'Survey'. Click the following link to see the individual response: https://www.musterimonemli.com/surveyx/index.php/admin/responses/sa/view/surveyid/784213/id/413 Click the following link to edit the individual response: https://www.musterimonemli.com/surveyx/index.php/admin/dataentry/sa/editdata/subaction/edit/surveyid/784213/id/413 View statistics by clicking here: https://www.musterimonemli.com/surveyx/index.php/admin/statistics/sa/index/surveyid/784213 The following answers were given by the participant: Yanıt kodu 413 Gönderildiği tarih 27.02.2018 12:55:50 Son bakılan sayfa 1 Başlangıç dili tr Tohum 575216181 Başlangıç tarihi 27.02.2018 12:55:48 Son işlem tarihi 27.02.2018 12:55:50 IP Adresi 95.10.195.105 Gelinen İnternet Adresi https://www.musterimonemli.com/surveyx/index.php/admin/survey/sa/view/surveyid/784213 Travel1 How ofter do you go to the travel? $(document).on('ready pjax:scriptcomplete',function(){ $('#navigator-container button').hide(); }); $(document).ready(function(){ $('#question input[type="radio"]').on('click', function() { $('#ls-button-submit').trigger('click'); }); }); Yes [A1][ Did you go to the travel last summer? $(document).ready(function() { $('#ls-button-previous').hide(); }); $(document).ready(function() { $('#ls-button-submit').hide(); }); $(document).ready(function(){ $('#question input[type="radio"]').on('click', function() { $('#ls-button-submit').trigger('click'); }); });
tpartner wrote: Try this for 3.4.x:
Code:<script type="text/javascript" charset="utf-8"> $(document).ready(function(){ $('#question{QID} input[type="radio"]').on('click', function() { $('#ls-button-submit').trigger('click'); }); }); </script>
$(document).ready(function(){ $('#question{QID} input[type="radio"]').on('click', function() { $('#ls-button-submit').trigger('click'); }); });