Check out the LimeSurvey source code on GitHub!

Changing the error message for mandatory questions

More
4 years 11 months ago #77016 by davidspivak
Hi,

Is it possible to change the error message that a user gets if he hasn't answered a mandatory question?
If so, where and how? Couldn't find it in the template editor.

I would also like to change the error message a user gets if he hasn't answered a 'other' mandatory option.

Thanks!
David

Please Log in to join the conversation.

More
4 years 11 months ago #77028 by DenisChenu
Hello,

You can change the translation file, it's for all survey.

For one survey, you have to make your own javascript.

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).

Please Log in to join the conversation.

More
4 years 11 months ago #77043 by davidspivak
I see.
Is there any chance you could guide me through the js option?
Thanks a lot,
David

Please Log in to join the conversation.

More
4 years 10 months ago #78914 by DenisChenu
Hello,

For question 212, a short text question, in question text, maybe something like this:
$(document).ready(function(){
$("#movenextbtn").click(function(){
  if($("#question212 input.text").val()==""){
	alert("the question 212 is mandatory");
  }
});
});
It's the quick way.

Denis

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).

Please Log in to join the conversation.

More
4 years 10 months ago #78931 by Mazi

davidspivak wrote: I see.
Is there any chance you could guide me through the js option?
Thanks a lot,
David

Instructions how to update the LimeSurvey translations can be found at docs.limesurvey.org/tiki-index.php?page=...anslating+LimeSurvey


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form