Toggle Switch

simply toggle it on or off

Toggle Switch


Make it quick and easy to select yes/no, on/off, questions.



Also a Limesurvey fan? You can try this file and adjust it to your own survey.
Tested with Version 3.17.4+190529

Lines of code to change:

/* change the answer options to your own SGQA */								
$('#toggle1').click(function () {
       if ($( 'input#answer118792X13X72SQ001-A1' ).is(':checked')) {
          $( 'input#answer118792X13X72SQ001-A1' ).prop('checked', false)
 		  $( 'input#answer118792X13X72SQ001-A2' ).prop('checked', true)
       else {
          $( 'input#answer118792X13X72SQ001-A1' ).prop('checked', true)
 		  $( 'input#answer118792X13X72SQ001-A2' ).prop('checked', false)

$( '#question72' ).hide(); // to your own question number from the hidden question



Solutions and code are given without any warranty, implied or otherwise.

Looking for a specific solution, existing tool or like to brainstorm? Feel free to contact me!