Please help us help you and fill where relevant:
Your LimeSurvey version: 6.6.3+240909
Own server or LimeSurvey hosting: own servers (9 VMs in Australia, 1 in UK, 2 in Canada).
Survey theme/template: iar2023
- extends `vanilla`
- custom.css: our own colour scheme and font-face rules
- custom.js: a few helper functions to try to work around weirdness
==================
The Preview Question and Preview Question Group features have never worked very well, and are entirely broken in most cases.
First of all, if you open a question group in the middle of a survey that has a condition set, it doesn't disable the condition checks, and the preview is usually of a mostly empty page as all the questions in the group are hidden by default. Not a particularly good design for a PREVIEW! See the first attachment for an example.
Well, up until recently I'd had a simple hack to work around that nonsense, in the form of a JS function:
Code:
IAR.fixPreview = function()
{
// Remove the 'hidden' and 'irrelevant' classes.
document.querySelectorAll('div,ul,li').forEach(el =>
el.classList.remove('ls-hidden', 'ls-irrelevant'));
}
Which worked alright (still annoying it was necessary). See the 2nd attachment for how it looks after I run that.
Well with the latest update, at least on certain question types ("Multiple numerical input" for example), as soon as I change a value in any input fields, it triggers the validation code, and bam, all the questions vanish again.
Not particularly useful for previewing a question design... which would be what a Preview function should be used for.
Any suggestions for how to correct this broken user experience?