- Posts: 57
- Thank you received: 2
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
relevance / condition: deactivate instead of hide?
- rikatechdoku
- Topic Author
- Offline
- Senior Member
Less
More
5 years 5 months ago #176749
by rikatechdoku
I'm using the hosted LimeSurvey Pro version (at least 3.15) on LS servers, AND also the locally installed xampp version as well (at least 3.15).
relevance / condition: deactivate instead of hide? was created by rikatechdoku
Hello,
is it possible to deactivate and grey out a question instead of completely hiding it, when relevance or condition rules would normally hide it?
Thx, regards, S.
is it possible to deactivate and grey out a question instead of completely hiding it, when relevance or condition rules would normally hide it?
Thx, regards, S.
I'm using the hosted LimeSurvey Pro version (at least 3.15) on LS servers, AND also the locally installed xampp version as well (at least 3.15).
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11639
- Thank you received: 2737
5 years 5 months ago #176760
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 relevance / condition: deactivate instead of hide?
No, I don't think so. At least not out of the box.
You might be able to create something via Javascript, but this would mean custom coding.
You might be able to create something via Javascript, but this would mean custom coding.
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.
- rikatechdoku
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 57
- Thank you received: 2
5 years 5 months ago #176761
by rikatechdoku
I'm using the hosted LimeSurvey Pro version (at least 3.15) on LS servers, AND also the locally installed xampp version as well (at least 3.15).
Replied by rikatechdoku on topic relevance / condition: deactivate instead of hide?
ok, thx for the info!
I'm using the hosted LimeSurvey Pro version (at least 3.15) on LS servers, AND also the locally installed xampp version as well (at least 3.15).
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
5 years 5 months ago - 5 years 5 months ago #176769
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 relevance / condition: deactivate instead of hide?
You can for dynamic hidden question. Just some line of css.
For example, just add this to custom.css
If you want to update input disabled attribute : must use javascript , get inspiration : github.com/LimeSurvey/LimeSurvey/blob/ma...survey/survey.js#L22
This one just add the ls-hidden class, but you can do anything else in custom.js
For example, just add this to custom.css
Code:
.js .ls-irrelevant.ls-hidden{display:block;opacity:0.5}
If you want to update input disabled attribute : must use javascript , get inspiration : github.com/LimeSurvey/LimeSurvey/blob/ma...survey/survey.js#L22
This one just add the ls-hidden class, but you can do anything else in custom.js
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.
Last edit: 5 years 5 months ago by DenisChenu.
The topic has been locked.
- rikatechdoku
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 57
- Thank you received: 2
5 years 5 months ago #176775
by rikatechdoku
I'm using the hosted LimeSurvey Pro version (at least 3.15) on LS servers, AND also the locally installed xampp version as well (at least 3.15).
Replied by rikatechdoku on topic relevance / condition: deactivate instead of hide?
Wow, DenisChenu, thx! That's what I was hoping for.
However, now this lead me to another "problem":
The question which can get activated and deactivated has option buttons. Of course, when it is activated, those option buttons can be set to a value. If afterwards the condition changes again (checkmark on the same page) and the options-question gets deactivated again, the set values for the options-question stay (though greyed out).
Is it possible to not just deactivate the question but at the same time reset all its answers to the initial value?
However, now this lead me to another "problem":
The question which can get activated and deactivated has option buttons. Of course, when it is activated, those option buttons can be set to a value. If afterwards the condition changes again (checkmark on the same page) and the options-question gets deactivated again, the set values for the options-question stay (though greyed out).
Is it possible to not just deactivate the question but at the same time reset all its answers to the initial value?
I'm using the hosted LimeSurvey Pro version (at least 3.15) on LS servers, AND also the locally installed xampp version as well (at least 3.15).
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
5 years 5 months ago #176776
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 relevance / condition: deactivate instead of hide?
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.
- rikatechdoku
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 57
- Thank you received: 2
5 years 5 months ago #176777
by rikatechdoku
I'm using the hosted LimeSurvey Pro version (at least 3.15) on LS servers, AND also the locally installed xampp version as well (at least 3.15).
Replied by rikatechdoku on topic relevance / condition: deactivate instead of hide?
Thx! Nice to know there is a recourse.
For now it is too much for me but I will maybe check it this out another time.
Tank you for your help!!!!
For now it is too much for me but I will maybe check it this out another time.
Tank you for your help!!!!
I'm using the hosted LimeSurvey Pro version (at least 3.15) on LS servers, AND also the locally installed xampp version as well (at least 3.15).
The topic has been locked.