- Posts: 3
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
Please,sydeburn wrote: I agree a custom function would be a nice addition for future versions.
No, best is to have a jquery extension like lsHide, lsShow, the user ca do what thez want in lsHide/lsShow.Mazi wrote: It would be nice to have a survey setting to have conditional questions either pop-up directly or slide in.
Less than 30 minute of work ...Shouldn't be too hard to implement, maybe a good idea for Google Code-in!?
(function($){ $.fn.hide = function(){ $(this).slideUp('slow'); $(this).css('display','none'); }; $.fn.show = function(){ $(this).slideDown('slow', function() { if($(this).is('tbody')){ $(this).css('display','table-row-group'); }else{ $(this).css('display','block'); } }); }; })(jQuery)
Arg .....Mazi wrote: Denis, I was just checking this nice solution at the link you provided ( demonstration.sondages.pro/54895/lang-en ) but it doesn't seem to work anymore. I can't find the mentioned adjustment at the template.js file at demonstration.sondages.pro/upload/templa...flatblue/template.js .
Did this get overwritten accidentally?
Can you post an updated link?
<script> $(function(){ var $nodiv = $('div[style="display: none;"]'); $('body').on('click',function(){ var $nodivQwrap = $('table.question-wrapper', $nodiv).hide(); setTimeout(function(){ $nodiv.each(function(){ if($(this).css('display') != 'none'){ $(this).find('table.question-wrapper').show("slow") } }); },50); }); }); </script>