What do you need help with?

Select first answer and automatically proceed

< 1 min read

AI Doc Summarizer AI Summary

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 answer option, please make sure to use the display conditions and any random sorting of the answer list correctly, so that only the correct option to select is displayed.

 

What are your feelings
Table of contents