Welcome to the LimeSurvey Community Forum

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

Show/no show input properties

More
8 years 11 months ago #119059 by MrM
Show/no show input properties was created by MrM
Dear all,

We are now on version 2 and there is a small difference on showing the properties of the input.
The question requires numerical input (days of the week)
Everything between 1 and 7
The thing is that part of the question show in purple: every answer must be between 1 and 7
(in our case in Dutch, see attachment)

In Lime-survey 1.xx (the survey was made a couple of years ago in 1.xx) this remark does not show.

Cannot find a setting to manipulate this. Is there one? Or may another solution?

Many thanks, Marten

Attachments:
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 11 months ago #119064 by tpartner
Replied by tpartner on topic Show/no show input properties

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
8 years 11 months ago #119066 by MrM
Replied by MrM on topic Show/no show input properties
Thanks. I tried that already, but the Hide tip is tied to the sentence below the input field.
It says here in Dutch: "In dit veld kunnen alleen cijfers worden ingevuld"

The purple sentence looks like it it something generic. So part of the numerical question type?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 11 months ago #119068 by tpartner
Replied by tpartner on topic Show/no show input properties
What version of LimeSurvey are you using? Have you tried with the default template?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • tammo
  • tammo's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
8 years 11 months ago #119069 by tammo
Replied by tammo on topic Show/no show input properties
Hi Mr. M,

the tip you are referring to is the emtip, which is generated bij the Expression Engine. In the template.css you can switch it off through a statement like:
.emtip{
display:none;
}

But only do this after carefully checking your complete survey, as these tips may contain valueable information for the user. In you case as described it could indeed be left away, but in other surveys we have had, it told the user to give between 2 and up to 4 answers fronm a larger quantity. This would give problems if left away at that question.

If needed you can leave it away for this one question, then the template.css would be something like:

#question[xxxx] .emtip{
display:none
}

where you have to replace [xxxx] with your actual questionnumber: like #question1234


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The following user(s) said Thank You: MrM
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 11 months ago - 8 years 11 months ago #119070 by tpartner
Replied by tpartner on topic Show/no show input properties
I find that in the following example this tip is NOT shown by default:

- default template with no modifications
- Numeric input question
- Hide tip = "Yes"
- NO Question validation equation
- NO Question validation tip
- Minimum value = 1
- Maximum value = 7


Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:
Last edit: 8 years 11 months ago by tpartner.
The following user(s) said Thank You: MrM
The topic has been locked.
  • tammo
  • tammo's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
8 years 11 months ago #119071 by tammo
Replied by tammo on topic Show/no show input properties
That is much better! Guess I was too much focussed on the template...

;-)

Tammo


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The topic has been locked.
More
8 years 11 months ago - 8 years 11 months ago #119072 by Ben_V
Replied by Ben_V on topic Show/no show input properties

Tammo wrote: If needed you can leave it away for this one question, then the template.css would be something like:
#question[xxxx] .emtip{
display:none
}


or you can adapt the style directly in the source of the question with few javascript lines
Code:
<script type="text/javascript">
 $(document).ready(function(){
    $( "<style type='text/css'>"
    + "#question{QID} .emtip { display:none }" //  #question[xxxx] syntax required if LS version <1.92
    +"</style>").appendTo( "head" );
 });
</script>

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
Last edit: 8 years 11 months ago by Ben_V.
The following user(s) said Thank You: tammo
The topic has been locked.
More
8 years 11 months ago - 8 years 11 months ago #119073 by MrM
Replied by MrM on topic Show/no show input properties
OK, many thanks. My college can adjust the code.

[strike]I am looking for the:

- NO Question validation equation
- NO Question validation tip

settings. Not in Advanced settings I am afraid. [/strike]

BINGO!! Just put NO in the field. Thank you tpartner!
And all others. Problem solved.

Have a nice weekend, Marten

PS LS Version 2.00+ Build 130325
Last edit: 8 years 11 months ago by MrM.
The topic has been locked.
  • tammo
  • tammo's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
8 years 11 months ago #119078 by tammo
Replied by tammo on topic Show/no show input properties
Is there a reason for not upgrading? You are using a LS version of more than 2 years old!

Just curious...

Tammo


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The topic has been locked.
More
8 years 11 months ago - 8 years 11 months ago #119080 by MrM
Replied by MrM on topic Show/no show input properties
Not really. We have introduced LS at the university here and they are quite happy. Lot's of complex surveys in version 1. They still use it.

Now, we built a new application for them and connected it to LS version 2, which we had installed indeed 2 years ago as test. But they wanted to stay on 1.xx No budget.

Might be good to upgrade now by the way. Thanks for the remark.

Marten
Last edit: 8 years 11 months ago by MrM.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose