IdSurvey allows you to choose whether or not to display a “Back” button to return to the last page viewed, following the correct questionnaire flow and skipping pages and questions that were not previously answered.
Back button on CAWI #
In CAWI, this option can be enabled in the questionnaire settings by clicking “Appearance” in the CAWI section and then opening the customizable template editor.
In the editor window, simply expand the “Buttons” section in the left-side menu, then set the Back button to “Text”, “Text and Icon”, or just “Icon”, depending on your preferred display mode.
This option applies to the entire questionnaire; you cannot show or hide the button only on specific pages.

Notes:
- Clicking the “Back” button does not automatically activate the “Show Edit Previous Questions” button in the “Others” drawer, nor vice versa. The two options are mutually independent.
- When selecting the “Text and Icon” view, you can specify a custom label. If you don’t specify anything and leave the (auto) option in the field, the system uses the default “Back” label. Should the respondent see the survey in a different language, this will automatically be translated into that language, as long as it’s one supported by CAWI.
Back button on CATI #
In CATI you cannot use custom templates, and the “Back” button is not normally available. However, you can enable this option using the script below. Simply go to the questionnaire settings page, select the “Advanced” tab on the left side and then click “Insert Script” (or “Edit Script” if you already have one in the survey). Copy the following script in there and save to apply the changes.
<script>
$(document).on("core.pageRendered",function(){
if($("[data-module='CATI']").length > 0){
var pathname = window.location.pathname; // Returns path only
$("#prevButtonPage").remove();
var input = $("<button id='prevButtonPage' class='btn btn-success btn-large btn-block button-next-page'>Back</button>");
input.appendTo("#footer");
$("#footer").addClass("buttonAdded");
$("#prevButtonPage").on("click",function(){
testmodePageLastAnswered();
});
}
});
</script>Notes:
- You can customize the label displayed directly in the script. Unlike the CAWI, this label is never automatically translated.
- The script works only in CATI and does not affect the CAWI in any way. You can therefore use it to set different behaviors between the two modules if a questionnaire has both of them active.