Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Trigger automatic forwarding

  • mpi0920
  • mpi0920's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 6 months ago #206448 by mpi0920
Trigger automatic forwarding was created by mpi0920
Hi, I know how to trigger an automatic forwarding with a yes/no question and how to hide the next button:

<script type="text/javascript" charset="utf-8">
$(document).on('ready pjax:scriptcomplete',function(){
$('.yesno-button').on('change', function() {
$('#ls-button-submit').delay(10).trigger('click');
});
});
</script> <script>
$(document).ready(function() {
$('#ls-button-submit').hide();
});
</script>



Is there a way so that I can do this with a 5 point choice question? Do I only have to change this line:
$('.yesno-button').on('change', function() {

And how would the 5 point choice been called in the source code?


Thank you in advance!
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 6 months ago - 3 years 6 months ago #206471 by tpartner
Replied by tpartner on topic Trigger automatic forwarding
Try changing:
Code:
$('.yesno-button').on('change', function() {

To:
Code:
$('input:radio').on('click', function() {

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 3 years 6 months ago by tpartner.
The topic has been locked.
  • mpi0920
  • mpi0920's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 6 months ago #206475 by mpi0920
Replied by mpi0920 on topic Trigger automatic forwarding
Thanks that works! :)
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose