- Posts: 7
- Thank you received: 0
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
- Topic Author
- Offline
- New Member
Less
More
6 years 5 months ago #159385
by 19649766
Question validation messages pop up even if not yet answered was created 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"
Attachments:
The topic has been locked.
- fvanderstarre
- Offline
- Elite Member
Less
More
- Posts: 176
- Thank you received: 36
6 years 5 months ago #159386
by fvanderstarre
Replied by fvanderstarre on 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:
I believe this will work in any current version (2.6.4lts, 2.x and 3.x beta...).
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; }
The topic has been locked.
- 19649766
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
6 years 5 months ago #159397
by 19649766
Replied by 19649766 on 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>
<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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11746
- Thank you received: 2750
6 years 5 months ago #159423
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on 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.
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
6 years 5 months ago #159428
by 19649766
Replied by 19649766 on 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
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13910
- Thank you received: 2548
6 years 5 months ago #159432
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 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.
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
6 years 5 months ago #159488
by 19649766
Replied by 19649766 on 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?
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13910
- Thank you received: 2548
6 years 5 months ago #159490
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 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 , plugin development .
I don't answer to private message.
The topic has been locked.
- 19649766
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
6 years 5 months ago #159494
by 19649766
Replied by 19649766 on 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?
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13910
- Thank you received: 2548
6 years 5 months ago #159552
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 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 , plugin development .
I don't answer to private message.
The topic has been locked.