Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: filter colums

filter colums 3 years 10 months ago #85117

  • Eule10
  • Eule10's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 14
  • Karma: 0
Dear Limeforum,
is it possible to filter Columns in Arrays (Typ: Array by column)?
I have a Question to school status. Before this question, I aks “Is there a partner?”. Now I want hide the Partner-Colum when partner not exist.

Thanks for help,
Eule
The administrator has disabled public write access.

filter colums 2 years 11 months ago #98696

  • OMdev
  • OMdev's Avatar
  • Offline
  • Platinum Lime
  • Posts: 326
  • Thank you received: 34
  • Karma: 15
Any update on this?
Survey Designer and Programmer
"I always suggest to have a group by group display layout and create a seprate group for each question. This will be extra work but you will get flexiblity to create your question by using more than more lime survey question types."
The administrator has disabled public write access.

filter colums 2 years 11 months ago #98699

  • Ben_V
  • Ben_V's Avatar
  • Offline
  • Platinum Lime
  • Posts: 1790
  • Thank you received: 439
  • Karma: 110
Some solution available in french forum
<script>
 
$(document).ready(function() { 
if ("{INSERTANS:123X456X789SQ001}"=="YES") 
 
$("#question{QID} table.question tbody tr").each(function(){ 
$(this).find('td').eq(1).css("display",'none');
});
$("#question{QID} table.question thead tr").each(function(){ 
$(this).find('th').eq(1).css("display",'none');
});
});
</script>
Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
All LS releases => bit.ly/1VMuTDu | 2.06lts => bit.ly/1Qv44A1
Demo surveys => bit.ly/20NW9V8 (already included in /docs/demosurveys)
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.328 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form