Hello, I'm running in the same issue as you do, except that i want to fill the question with some custom tokens attribute.
it works well if the question is displayed, but not if the question is hidden.

i use the display "one question at once" so the hidden question is never displayed and the jquery is never executed.

On previous versions of lime survey i used a php hack to fill the answers, but when i see all greats evolutions limesurvey had for the last year, i prefer to have a vanilla limesurvey to keep limesurvey up to date easily.

that is what i understand, but if i hide the question with javascript or css, then users will see an empty screen (because i'm displaying question by question).
i made a feature request about the "always hide this question" functionnality.here

Well, no point in wasting time on pleasantries eh? You will need to use {INSERTANS}. I would need more details to give you an example but there are many posts on the subject if you search the forum.

Didn't mean to be rude

I searched the forum and found some example for tokens but none for other questions. At least the one that helped me solve my problem.

I have 4 questions (all multiple)in my survey (among others of course. One with answer codes 1-12, second with codes 13-20 and last one with 21-25. Later on I have question with all 25 codes combined and I would like only answers that were previously marked to be shown.

Similar to array filter but I have to use 3 questions not just one.

My idea is to have hidden question with 25 codes and I use a script to fill in the answers. Than I can use array filter function to show only answers I want.

Of course I would appreciate other solutions as well. I not really expert in LS.