Welcome to the LimeSurvey Community Forum

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

Newbie: Yes-No Question should automatically proceed to next question

  • kiesldusl
  • kiesldusl's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 5 days ago #195714 by kiesldusl
I have a set of yes no questions. I would like to have LimeSurvey proceeding to the next question after clicking on yes or no.
The Plugin addScriptToQuestion is installed.
I tried several solutions in the forum, but none of them worked.
I have LS 3.16.1
The topic has been locked.
  • kiesldusl
  • kiesldusl's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 4 days ago #195759 by kiesldusl
After a lot of trying i did it. Added to custom.js of my template:
Code:
$(document).on('ready pjax:scriptcomplete',function(){ 
  $('.yesno-button').on('change', function() {
    $('#ls-button-submit').delay(10).trigger('click');
  });
});
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose