Question validation messages pop up even if not yet answered

More
1 month 2 weeks ago #159385 by 19649766
19649766 created the topic: Question validation messages pop up even if not yet answered
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"
Attachments:

Please Log in to join the conversation.

More
1 month 2 weeks ago #159386 by fvanderstarre
fvanderstarre replied the topic: Question validation messages pop up even if not yet answered
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:
.emtip {
    display: none;
}
.questionhelp {
    display: none;
}
I believe this will work in any current version (2.6.4lts, 2.x and 3.x beta...).

Please Log in to join the conversation.

More
1 month 2 weeks ago #159397 by 19649766
19649766 replied the topic: Question validation messages pop up even if not yet answered
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>

Please Log in to join the conversation.

More
1 month 2 weeks ago #159423 by holch
holch replied the topic: Question validation messages pop up even if not yet answered
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'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
1 month 2 weeks ago #159428 by 19649766
19649766 replied the topic: Question validation messages pop up even if not yet answered
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

Please Log in to join the conversation.

More
1 month 1 week ago #159432 by DenisChenu
DenisChenu replied the topic: Question validation messages pop up even if not yet answered
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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
1 month 1 week ago #159488 by 19649766
19649766 replied the topic: Question validation messages pop up even if not yet answered
Thanks Denis - would this mean the validation tip would not appear anymore even if it needs to?

Please Log in to join the conversation.

More
1 month 1 week ago #159490 by DenisChenu
DenisChenu replied the topic: Question validation messages pop up even if not yet answered
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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
1 month 1 week ago #159494 by 19649766
19649766 replied the topic: Question validation messages pop up even if not yet answered
Ok I'll give it a try and keep updated - why does this behavior occur though? Is it a bug with template.js?

Please Log in to join the conversation.

More
1 month 1 week ago #159552 by DenisChenu
DenisChenu replied the topic: Question validation messages pop up even if not yet answered
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 (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!