Skip to content
Zotonic
  • Start
  • Guides
  • Reference
  • Releases

Live search

Search across all Zotonic content

Type at least two characters

Results are matched against titles, summaries and topics as you type.

Filters · mod_survey
  • Reference
  • Frontend developer
  • Surveys
  • Template filter
  • Compare
  • Boolean

survey_is_history_back

Module

mod_survey

Test whether a survey respondent may return to the previous page in a history.

The first value is the survey resource. The argument can be a previous page number or a history list whose first two entries are the current and previous page numbers.

For example:

{% if id|survey_is_history_back:history %}
    <button name="back">Back</button>
{% endif %}

Edit on GitHub

Related documentation

Filters

survey_is_save_intermediate

Check if the given survey is configured to save intermediate results. Always returns a boolean value.

Filters

survey_is_pagebreak_submit

Check if a list of questions contains a pagebreak block with an unconditional submit.

Filters

survey_any_correct_answer

Determine if any answer of a question was correct. Used for showing results of thurstone test questions.

Filters

survey_is_stop

Check if there is a ‘stop’ question in list of (survey) blocks

Filters

survey_any_wrong_answer

Determine if any answer of a question was wrong. Used for showing results of thurstone test questions.

Filters

survey_is_submit

Check if the questions end with a question type that is a submit button.

Filters

default_if_undefined

Provide an alternative value in case a value is undefined.

Filters

default_if_none

Provide an alternative value in case a value is undefined.

Filters

if

Selects an argument depending on a condition.

GitHub © 2026 Zotonic