- Posts: 1128
- Thank you received: 329
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
semantic differential
- Ben_V
- Offline
- Platinum Member
Less
More
9 years 4 months ago #114724
by Ben_V
Not tested but should be something very closed to:
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)
Replied by Ben_V on topic semantic differential
lime_enpres wrote: Therefore we would like to know if it is possible to eliminate the "no answer" field for a specific question while answering the question is still non-mandatory.
Not tested but should be something very closed to:
Code:
<script type="text/javascript" charset="utf-8"> $(document).ready(function(){ $('#questionQQ table.question tr td:last').css({ 'display':'none' }); // $('#questionQQ table.question thead th:last').css({ 'display':'none' }); }); </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)
The topic has been locked.
- lime_enpres
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 0
9 years 4 months ago #114756
by lime_enpres
Replied by lime_enpres on topic semantic differential
Attachments:
The topic has been locked.
- Ben_V
- Offline
- Platinum Member
Less
More
- Posts: 1128
- Thank you received: 329
9 years 4 months ago #114764
by Ben_V
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)
Replied by Ben_V on topic semantic differential
All the code given in this thread is for an array question type, and it seems you are using radio buttons...
It's much better to start a new topic rather than to reopen a 2y old one with such important differences...
...
You have to look at the source code and hide all the answer components (button + answer text) using css; Could be something like:
.
It's much better to start a new topic rather than to reopen a 2y old one with such important differences...
...
You have to look at the source code and hide all the answer components (button + answer text) using css; Could be something like:
Code:
#javatbd1234X567X89 { display:none }
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)
The topic has been locked.
- lime_enpres
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 0
9 years 4 months ago #114800
by lime_enpres
Replied by lime_enpres on topic semantic differential
WE can start a new topic for our problem but the problem is very hard to explain without the previous discussion.
We are beginners in JavaScript. But I think you see it already^^. Therefore we have no idea how to adjust any easy term in JavaScript. We need the finish expression for our problem. Then we can use it. Please
To our question types:
We use in our survey both, table questions and list (radio) questions. We thought (maybe falsely) the problem is the same for any question type apart from the special expression in java. Like the expression in java for renaming the “no-answer” field.
Thx for Help
We are beginners in JavaScript. But I think you see it already^^. Therefore we have no idea how to adjust any easy term in JavaScript. We need the finish expression for our problem. Then we can use it. Please
To our question types:
We use in our survey both, table questions and list (radio) questions. We thought (maybe falsely) the problem is the same for any question type apart from the special expression in java. Like the expression in java for renaming the “no-answer” field.
Thx for Help
The topic has been locked.
- Ben_V
- Offline
- Platinum Member
Less
More
- Posts: 1128
- Thank you received: 329
9 years 4 months ago #114806
by Ben_V
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)
Replied by Ben_V on topic semantic differential
Fo radio buttons questions, try to paste the following code in your question text after adapting "aoq" by your correct answer option code (i.e A6, 6 etc... ).
.
Code:
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { $('#javatbd{SID}X{GID}X{QID}aoq').hide(); }); </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)
The topic has been locked.
- lime_enpres
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 0
9 years 4 months ago #114812
by lime_enpres
Replied by lime_enpres on topic semantic differential
This code would solve our problem perfectly. Thanks for that.
Only problem we have now is that the "no answer" option is added by LimeSurvey with an answer code which is unknown (at least for us)
Therefore we don´t know with which code we have to replace "aoq".
Only problem we have now is that the "no answer" option is added by LimeSurvey with an answer code which is unknown (at least for us)
Therefore we don´t know with which code we have to replace "aoq".
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10098
- Thank you received: 3589
9 years 4 months ago #114813
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic semantic differential
To hide the last item in any select-radio type question, add this to the source of that question:
Code:
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { $('#question{QID} li.answer-item:last').hide(); }); </script>
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: Ben_V
The topic has been locked.
- Ben_V
- Offline
- Platinum Member
Less
More
- Posts: 1128
- Thank you received: 329
9 years 4 months ago #114818
by Ben_V
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)
Replied by Ben_V on topic semantic differential
oups.. that's true... So try Tony's code... or better to say use Tony's code, because Tony's snippets are ALWAYS working
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)
The topic has been locked.