Welcome to the LimeSurvey Community Forum

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

Multiple question types in array

  • r.bushroot
  • r.bushroot's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 9 months ago #229988 by r.bushroot
Multiple question types in array was created 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.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 9 months ago #229991 by Joffm
Replied by Joffm on topic Multiple question types in array
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.

  • r.bushroot
  • r.bushroot's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 9 months ago #230013 by r.bushroot
Replied by r.bushroot on topic Multiple question types in array
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.

  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 9 months ago #230014 by tpartner
Replied by tpartner on topic Multiple question types in array
You definitely need to disable the XSS filter to place JavaScript in questions or groups. Did you try the simple alert as outlined in manual.limesurvey.org/Workarounds:_Manip...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.

Lime-years ahead

Online-surveys for every purse and purpose