Welcome to the LimeSurvey Community Forum

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

How to show error message when survey is not complete

  • Maarten
  • Maarten's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 4 months ago #115031 by Maarten
Hi guys,

Anybody an idea on how to show an error message on the top of the page (maybe in the welcome message) when the user submits the survey, but not all the questions haven't been filled in (survey isn't complete)?
The survey is 10 questions on one page.

Thanks for the help.

KR,
Maarten
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 4 months ago #115036 by tpartner
Technically, if the respondent is allowed to submit because the questions are not mandatory the survey is categorized as complete.

Having said that, you could use JavaScript or possibly Expression Manager to display the message. The details would depend on the question types.


.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 4 months ago #115112 by DenisChenu
Hi.

Another solution, is to add a 'display text' question : with:
Code:
{if(is_empty(Q1) or is_empty(Q2) or is_empty(Q3),"<div class='warning alert-warning'>Some answer are empty, blah blah</div>","")}

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose