Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Multiple question types in array

More
3 years 1 month ago #229988 by r.bushroot
I would like to create an array with multiple different question types (cf. attachment). 
A work around has been suggested here  and an example has been provided and disussed here . However, the scripts and examples are old and I could not make them run properly in my survey. 
Could somebody provide my with instructions and potentially an example (LSS and script) that work with LimeSurvey 5 (5.3.21, own server)?

Thanks.

==================
Your LimeSurvey version: Version 5.3.21
Own server or LimeSurvey hosting: Own server


 

Please Log in to join the conversation.

More
3 years 1 month ago #229991 by Joffm
The shown example with two dropdowns in your second link should work in 5.x.

Joffm 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: r.bushroot

Please Log in to join the conversation.

More
3 years 1 month ago #230013 by r.bushroot
Thanks for the feedback.
I just found a potential explanation: To make it work, i.e., to make scripts work in questions, I need to deactivate the "Filter HTML for XSS". As this might not be the case, the script will not work.

Is this correct?
(I haven't been able to check it myself as I have not the necessary administrator privileges)

Please Log in to join the conversation.

More
3 years 1 month ago #230014 by tpartner
You definitely need to disable the XSS filter to place JavaScript in questions or groups. Did you try the simple alert as outlined in www.limesurvey.org/manual/Workarounds:_M...tc..29_in_LimeSurvey ?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: r.bushroot

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose