Select first answer and automatically proceed

Compatibility:IdSurvey 6IdSurvey 7

This javascript can be used to let IdSurvey automatically choose the first single select option of the question(s) it finds in the page and proceed to following page. It can be used to set “hidden” pages that can be useful to update quotas or values but that the final user doesn’t have to display.

Instructions

Paste the script in the Client script box you find in the gearwheel button of the page.
As the script just select the first option be sure to use display condition on answers to display the correct options to select.

<script type="text/javascript">
$(".main-responses li:first-child input[type=radio]").trigger("click");
$("#nextPage").trigger("click");
</script>

 

EN_select_and_proceed

Javascript_idcode_select_proceed

Leave A Comment?