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.

Notifications
  • Reference
  • Backend developer
  • Forms
  • Surveys
  • Notification
  • Send and receive

observe_survey_submit/2

A survey has been filled in and submitted.

Type:

first

Return:

undefined, ok, {ok, Context | #render{}}, {save, Context | #render{} or {error, term()}

#survey_submit{} properties:

  • id: m_rsc:resource_id()
  • handler: binary|undefined
  • answers: list
  • missing: list
  • answers_raw: list
  • submit_args: proplists:proplist()

Edit on GitHub

Related documentation

Notifications

observe_survey_get_handlers/3

Fetch list of handlers for survey submits.

Models

survey_saved

Model for saving and retrieving intermediate survey answers for users. There can only be a single intermediate result per user/survey or

Notifications

observe_translate/2

Request a translation of a list of strings. The resulting translations must be in the same order as the request. This notification is…

Notifications

observe_survey_result_columns/3

Add header columns for export. The values are the names of the answers and the text displayed above the column. The text format is for a…

Notifications

observe_mailinglist_message/2

Send a welcome or goodbye message to the given recipient. The recipient is either a recipient-id or a recipient props. ‘what’ is…

Notifications

observe_survey_is_submit/2

Check if a question (page block) is a submitting question.

Models

survey

Model for survey reporting and participant state, including results, totals, per-user answers, exports, and result handlers.

Notifications

observe_activity_send/2

Push a list of activities via a ‘channel’ (eg ‘email’) to a recipient. The activities are a list of #activity{} records.

Notifications

observe_survey_is_allowed_results_download/2

Check if the current user is allowed to download a survey.

GitHub © 2026 Zotonic