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 will not be displayed to the final user.

Instructions

Copy the script in the “Client script” box you find in the gearwheel button of the page.

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

As the script only selects the first option, make sure to use display conditions on answers to display the correct options to select.

EN_select_and_proceed

Javascript_idcode_select_proceed

Leave A Comment?