Limesurvey: Hide prefilled Questions

I have a limesurvey where I prefill several questions via URL.

Those Questions should not be visitble to the users and therefore not be editable.

I found a forum post regading this topic:

https://forums.limesurvey.org/forum/design-issues/94597-hide-question-if-prefilled

Issue was, that the javascript for the Plugin, was not valid anymore. I have updated it to fit todays requirements (and also work for radio buttons):


  $(document).on('ready pjax:complete',function() {
    if($('#question{QID} input:text').val() !== '' || $('#question{QID} input:radio').is(":checked")) {
      $('#question{QID}').hide();
    }
  });

Leave a Reply

Your email address will not be published. Required fields are marked *