- Posts: 19
- Thank you received: 1
Ask the community, share ideas, and connect with other LimeSurvey users!
<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'); }); });
Joffm wrote: Hi,
I put it into the question text (source code mode) and it works.
Joffm
$(document).on('ready pjax:scriptcomplete',function(){ $('.list-radio input[type="radio"]').on('click', function() { $('#ls-button-submit').trigger('click'); }); });
Can what be used? There are many script samples in this thread.Can this be used in Arrays?
Please explain exactly what you want to do and what you have tried.But this code hides all next, can you hide only one problem page's next?