Welcome to the LimeSurvey Community Forum

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

Array(text) with dropdown doesn't work

  • csantinello
  • csantinello's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 weeks 21 hours ago #265846 by csantinello
Array(text) with dropdown doesn't work was created by csantinello
(Write here your question/remark)
(Write here your question/remark)(Write here your question/remark)Please help us help you and fill where relevant:
LimeSurvey version: LimeSurvey Cloud   Version 6.5.16
Own server or LimeSurvey Cloud: Cloud version
Survey theme/template: Fruity
==================
HI,
I'm having trouble getting a Java script to work.

The objective is to insert an Array(text) type question into the survey but with response options in the dropdown menu.

For the solution I referred to Joffm's post

forums.limesurvey.org/forum/can-i-do-thi...cific-columns#226674

and especially on the post to his first option, what he defines as "usual" to insert different dropdowns different columns.

forums.limesurvey.org/forum/can-i-do-thi...menu-in-array#226612

I think I'm doing something wrong in its application in my question or I'm doing something wrong in the configuration. I attach the .lss file with the inserted question.

I did some tests to verify that JS works correctly, and everything works.

Thanks to anyone who can help meBye Cristiano 

File Attachment:

File Name: limesurvey...4538.lss
File Size:29 KB

 

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 weeks 20 hours ago #265847 by Joffm
Replied by Joffm on topic Array(text) with dropdown doesn't work
Hi,
everything is nearly fine.
You saw that when you imported the mentioned example.

But only nearly.
It's the apostrophe in "Tutto l’anno o quasi (9-12 mesi)" and "In altri mesi dell'anno" that destoys the syntax.
You have to mask it with a backslash.
"Tutto l\’anno o quasi (9-12 mesi)"
 
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • csantinello
  • csantinello's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 weeks 19 hours ago #265849 by csantinello
Replied by csantinello on topic Array(text) with dropdown doesn't work
Hi Joffm,
thanks. 
My little experience with JS didn't let me find the problem.

a good day
Cristiano

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose