Welcome to the LimeSurvey Community Forum

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

Question validation messages pop up even if not yet answered

  • 19649766
  • 19649766's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 5 months ago #159385 by 19649766
Hi, is there a fix for this problem? It is frustrating for the user to have the question validation messages pop up, even when they have not answered yet. I have attached a screenshot of the issue - the message pops up the moment the participants click "start"
The topic has been locked.
More
6 years 5 months ago #159386 by fvanderstarre
The messages you are referring to are "question tips" and/or "EM tips".
For individual questions, you can set "Hide tip" to Yes in advanced question settings.
Suppressing them all is done in your template.css file by adding some code at the end:
Code:
.emtip {
    display: none;
}
.questionhelp {
    display: none;
}
I believe this will work in any current version (2.6.4lts, 2.x and 3.x beta...).
The topic has been locked.
  • 19649766
  • 19649766's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 5 months ago #159397 by 19649766
Thanks there - I have hidden the question tips (which are a different thing); these ones are question EM errors - it seems that EM is throwing an error even though the question was not even submitted yet.

<div class="col-sm-12 questionvalidcontainer">
<div class="questionhelp text-danger tip-was-hidden" role="alert" id="vmsg_1740" style="">
<div id="vmsg_1740_sum_range" class="em_sum_range emtip error">

<span class="fa fa-exclamation-circle" aria-hidden="true"></span>
The sum must equal 100.</div>
<div id="vmsg_1740_value_integer" class="em_value_integer emtip good">

<span class="fa fa-exclamation-circle" aria-hidden="true"></span>
Only integer values may be entered in these fields.</div>
</div>

</div>
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 5 months ago #159423 by holch
What kind of template are you using? If not a standard template that comes shipped with LS: try it with one of the standard templates and see what happens?
What version of LS are you using? Can you show an example? My guess is that this is some kind of problem with your questionnaire, because otherwise we would have a lot more discussion about this here in the forum.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • 19649766
  • 19649766's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 5 months ago #159428 by 19649766
Hi,

I switched to the standard template but the error popped up still. Version 2.67.3+170728. My site is at psych.work/survey - thank you so much

R
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 5 months ago #159432 by DenisChenu
There are a javascript system in default template to show tip even if hidden (in fact : hide valid tip, show error type).
github.com/LimeSurvey/LimeSurvey/blob/ma...pts/template.js#L185

Delete this part and see what happen.

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.
  • 19649766
  • 19649766's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 5 months ago #159488 by 19649766
Thanks Denis - would this mean the validation tip would not appear anymore even if it needs to?
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 5 months ago #159490 by DenisChenu
For such behaviour , have exactly needed solution, i like to use Sub-question validation equation + the tip with some {if(empty(self),"",if(self<0,"Need to be up to 0",""))}

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.
  • 19649766
  • 19649766's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 5 months ago #159494 by 19649766
Ok I'll give it a try and keep updated - why does this behavior occur though? Is it a bug with template.js?
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 5 months ago #159552 by DenisChenu
Not really … i think yes, but it's the default behaviour from default template.

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