Actions

BeforeLoadResponse

From LimeSurvey Manual

When

This event is fired for survey with token (not anonymized), if a response with this token exist.

Input

  • surveyId as integer, the current survey Id
  • responses as array of Response object

Possible output

  • response false or Response object, if false : create a new response, if Response object : reload it (even if survey have tokenanswerspersistence to no or alloweditaftercompletion to no)