- Posts: 77
- Thank you received: 4
Ask the community, share ideas, and connect with other LimeSurvey users!
<script type="text/javascript" charset="utf-8"> $(document).ready(function(){ $('tr.radio-list input.radio').bind('click', function () { var thisArray = $(this).closest('table'); if($('input.radio:checked', thisArray).length == $('tr.radio-list', thisArray).length) { $("#movenextbtn,#movesubmitbtn").delay(1).click(); } }); $(".list-dropdown select").change(function(){ if($(this).val()!="" && $(this).val()!="-oth-"){ $("#movenextbtn,#movesubmitbtn").delay(1).click(); } }); $('#movenextbtn, #movesubmitbtn').hide(); }); </script>
Joffm wrote: in version 3. the "#movenextbtn,#movesubmitbtn" have other IDs.
Now it is "#ls-button-submit"
tr.radio-list
td.radio-item
.radio-item
<script type="text/javascript" charset="utf-8"> $(document).ready(function(){ $('tr.radio-list input.radio').bind('click', function () { var thisArray = $(this).closest('table'); if($('input.radio:checked', thisArray).length == $('tr.radio-list', thisArray).length) { $("#ls-button-submit").delay(1).click(); } }); $(".list-dropdown select").change(function(){ if($(this).val()!="" && $(this).val()!="-oth-"){ $("#ls-button-submit").delay(1).click(); } }); $('#ls-button-submit').hide(); }); </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 type="text/javascript" charset="utf-8"> $(document).on('ready pjax:scriptcomplete',function(){ $('tr.radio-list input[type="radio"]').bind('click', function () { var thisArray = $(this).closest('table'); if($('input[type="radio"]:checked', thisArray).length == $('tr.radio-list', thisArray).length) { $("#ls-button-submit").delay(1).click(); } }); $(".list-dropdown select").change(function(){ if($(this).val()!="" && $(this).val()!="-oth-"){ $("#ls-button-submit").delay(1).click(); } }); $('#ls-button-submit').hide(); }); </script>
UPDATE `ls_db`.`ls_table` SET `ls_field` = replace(ls_field, 'unwanted_text', 'wanted_text');