Welcome to the LimeSurvey Community Forum

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

Move forward by clicking on Yes/No-Button

  • Birgobert
  • Birgobert's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 5 months ago - 7 years 5 months ago #144327 by Birgobert
Hi everyone,
i got two problems with my survey. I want to move to the next page by clicking on the Yes/No-Buttons. In the function you can see below, i only work with the radio-buttons. But i want to work the 'button-group' under 'Display-Type', but i don't find any way to get the input-type of it. I thought it is also a submit-button, but only input.submit or s.th. like this doesn't work.
The second problem is in the actual version. It's only working, if you click on the circle from the radio-button. If you click on the label, you get the error message, that you have to choose one answer (is a mandatory question). Does s.b. have an idea to solve this..?

Greetings and thank you very much in advance for your answer.
Code:
$('#question{QID} input.radio').click(function() {
      checkconditions($(this).attr('value'), $(this).attr('name'), $(this).attr('type'))
      $('#movenextbtn, #movesubmitbtn').trigger('click');
    });

Version 2.55.1
Last edit: 7 years 5 months ago by Birgobert. Reason: add version
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose