- Posts: 10110
- Thank you received: 3593
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Can I hide a particular subquestion or answer using Expression Manager
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
8 years 1 week ago #134921
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 Can I hide a particular subquestion or answer using Expression Manager
Try this:
Code:
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { $('#question{QID} label.answertext').each(function(i) { if($.trim($(this).text()) == '') { $(this).closest('.question-item').find('input[type="text"]').val(''); $(this).closest('.question-item').hide(); } }); }); </script>
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- raygain
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
7 years 4 months ago #145453
by raygain
Replied by raygain on topic Can I hide a particular subquestion or answer using Expression Manager
Hi tpartner ,
I need to hide answer on the basis of previous question answer !
for ex :
Q1 Which of the following type of calls have you made in the last one month from your landline/ wireline connection?
1. Local calls
2. STD calls
3. ISD/ International calls
if user select option 1 and 2 then in Q 2 third option (R3- ISD/ International calls ) will be hide
Q2.Do you recall facing congestion while making the following calls?
1. YES 2. NO
R1 - Local calls
R2- STD calls
R3- ISD/ International calls
plz refer some url for script or share script !
Regards
Raygain
I need to hide answer on the basis of previous question answer !
for ex :
Q1 Which of the following type of calls have you made in the last one month from your landline/ wireline connection?
1. Local calls
2. STD calls
3. ISD/ International calls
if user select option 1 and 2 then in Q 2 third option (R3- ISD/ International calls ) will be hide
Q2.Do you recall facing congestion while making the following calls?
1. YES 2. NO
R1 - Local calls
R2- STD calls
R3- ISD/ International calls
plz refer some url for script or share script !
Regards
Raygain
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11660
- Thank you received: 2742
7 years 4 months ago #145457
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 Can I hide a particular subquestion or answer using Expression Manager
Depending on which version of Limesurvey you use, this is common Expression Manager via the subquestion relevance.
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.