- Posts: 1
- Thank you received: 0
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
- Topic Author
- Offline
- New Member
Less
More
9 years 4 months ago #115031
by Maarten
How to show error message when survey is not complete was created 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
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
9 years 4 months ago #115036
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on 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.
.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
9 years 4 months ago #115112
by DenisChenu
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.
Replied by DenisChenu on topic How to show error message when survey is not complete
Hi.
Another solution, is to add a 'display text' question : with:
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.