Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

How can I test if a survey is submitted or completed?

  • sodiumchl
  • sodiumchl's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 10 months ago #211692 by sodiumchl
I just wanted to determine in a plugin whether the current survey had been submitted.

I found another way to achieve this:
Code:
$isCompleted = SurveyDynamic::model($surveyid)->isCompleted($_SESSION['survey_'.$surveyid]['srid']);
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
3 years 10 months ago #211779 by DenisChenu
See code : github.com/LimeSurvey/LimeSurvey/blob/a1...rveyDynamic.php#L243 (how thçis awfull …)

Comapre with Reponse::model($sid)->getByPk($srid)->submitdate …

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose