How to show error message when survey is not complete

More
2 years 11 months ago #115031 by Maarten
Maarten created the topic: How to show error message when survey is not complete
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

Please Log in to join the conversation.

More
2 years 11 months ago #115036 by tpartner
tpartner replied the topic: How to show error message when survey is not complete
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.

Please Log in to join the conversation.

More
2 years 11 months ago #115112 by DenisChenu
DenisChenu replied the topic: How to show error message when survey is not complete
Hi.

Another solution, is to add a 'display text' question : with:
{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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!