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.


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");

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



Leave A Comment?