- Posts: 8
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
conditions on subquestion
- zahidansari
- Topic Author
- Offline
- New Member
I checked the html source and it seems the question itself is not there in the html!!
- zahidansari
- Topic Author
- Offline
- New Member
- Posts: 8
- Thank you received: 0
var qHiddenID = 14257;
$('#question'+14257+'').hide();
where qHiddenID is your question id
to hide your question
- tpartner
- Online
- LimeSurvey Community Team
- Posts: 10104
- Thank you received: 3593
If you use the advanced setting, the question is never rendered on the page so cannot be manipulated with JavaScript.
In my opinion this "feature" causes too much confusion and should be dropped.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
- zahidansari
- Topic Author
- Offline
- New Member
- Posts: 8
- Thank you received: 0
- DenisChenu
- Offline
- LimeSurvey Community Team
- Posts: 13637
- Thank you received: 2491
Maybe, but:tpartner wrote: In my opinion this "feature" causes too much confusion and should be dropped.
If i want to fill the survey with url and don't want user can access this answer ?
If i want to fill the survey with Session ?
If i want to fill the survey with ajax ?
Just hide the answer item with css aren't good, because user can change it.
Maybe a "activate" or "read-only" option ? ( directly in HTML, can be removed with jquery).
Denis
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.
- tpartner
- Online
- LimeSurvey Community Team
- Posts: 10104
- Thank you received: 3593
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
- Mazi
- Offline
- Official LimeSurvey Partner
Question: Why don't we just use a $('#question'XYZ'').hide(); instead of not generating the source code at all as it is currently done? Wouldn't this solution cover all our needs?
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
- DenisChenu
- Offline
- LimeSurvey Community Team
- Posts: 13637
- Thank you received: 2491
Mazi wrote: I vote for extending this feature or overwork it.
Question: Why don't we just use a $('#question'XYZ'').hide(); instead of not generating the source code at all as it is currently done? Wouldn't this solution cover all our needs?
Just put a style="display:none" directly in HTML .
I think it's best to have an extra item for all question:
"Extra class : "
With an {EXTRACLASS) in template.css
Then you can have
<div id="questionXXX" class="question-wrapper list-dropdown hide"> OR <div id="questionXXX" class="question-wrapper list-dropdown tparner-workaround"> OR <div id="questionXXX" class="question-wrapper list-dropdown important">
etc etc ...
Istarted to work with something like this for CI, but there are some old template incompatibility to resolve, and redo the work for Yii .
Denis
PS:
It's just what i think, maybe it's not important .Maybe, but:
If i want to fill the survey with url and don't want user can access this answer ?
If i want to fill the survey with Session ?
If i want to fill the survey with ajax ?
Just hide the answer item with css aren't good, because user can change it.
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.
- tpartner
- Online
- LimeSurvey Community Team
- Posts: 10104
- Thank you received: 3593
Great idea. Joomla has this for all content, modules, etc. and I use it all the time. You can also add multiple classes.I think it's best to have an extra item for all question:
"Extra class : "
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
- DenisChenu
- Offline
- LimeSurvey Community Team
- Posts: 13637
- Thank you received: 2491
Ho, yes .tpartner wrote:
Great idea. Joomla has this for all content, modules, etc. and I use it all the time. You can also add multiple classes.I think it's best to have an extra item for all question:
"Extra class : "
Just think of removing bad caracter from this "extraclass" .
I look on Yii more next week and send a patch start .
Denis
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.