Welcome to the LimeSurvey Community Forum

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

Array Question with "Other" Answer

  • aarontimos
  • aarontimos's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 7 months ago #219854 by aarontimos
Array Question with "Other" Answer was created by aarontimos
Hi there,

I would like to add an 'other' option in an array question. I found the following thread ( forums.limesurvey.org/forum/can-i-do-thi...ther-answer?start=30 ) but unfortunately I don't have access to make JS edits. 

I tried adding !is_empty(QQ_OTHE) to the question relevance field in both the array question and the new OTHE subquestion.

Any help or advice would be much appreciated.

Many thanks

Aaron
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 7 months ago #219864 by tpartner
Replied by tpartner on topic Array Question with "Other" Answer
It is not possible to move a text input from another question into an array without using JavaScript.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • aarontimos
  • aarontimos's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 7 months ago #219887 by aarontimos
Replied by aarontimos on topic Array Question with "Other" Answer
Thank you @tpartner.

LS is installed on my institution's servers and the IT team are very reluctant to give backend access for fear of malicious code. Is it possible to use JavaScript without having server file access? I don't think this is possible but thought I would double check.

Many thanks!
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 7 months ago #219890 by tpartner
Replied by tpartner on topic Array Question with "Other" Answer
Assuming that the SSL filter is not activated, you can place JavaScript in the question source.

- manual.limesurvey.org/Workarounds:_Manip...tc..29_in_LimeSurvey

If you extend your theme, you can add JavaScript to the custom.js file.

- manual.limesurvey.org/New_Template_System_in_LS3.x

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 6 months ago #219944 by holch
Replied by holch on topic Array Question with "Other" Answer

Assuming that the SSL filter is not activated, you can place JavaScript in the question source.


I think Tpartner is talking about the XSS-Filter.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The following user(s) said Thank You: tpartner
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 6 months ago #219946 by tpartner
Replied by tpartner on topic Array Question with "Other" Answer
Of course. :)

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • aarontimos
  • aarontimos's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 6 months ago #219996 by aarontimos
Replied by aarontimos on topic Array Question with "Other" Answer
Thank you @tpartner and @holch.

I assume the XSS filter is engaged. I tried using the test! code provided at manual.limesurvey.org/Workarounds:_Manip...tc..29_in_LimeSurvey and the Q1 just appeared as normal without the 'test!' text in site.

As I don't even have 'global settings' available to me, I'll have to ask ICT security if they will oblige.

Thank you both for your help.

Kind Regards

Aaron
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
1 year 6 months ago #232527 by Mazi
Replied by Mazi on topic Array Question with "Other" Answer

It is not possible to move a text input from another question into an array without using JavaScript.
There are several great JS based solutions at the forums provided by tpartner.

If Js is no option, have a look at this Limesurvey plugin to add text fields to array questions without using JS code:  survey-consulting.com/product/array-with...t-limesurvey-plugin/

Demo survey:  plugins.mysurveyhosting.com/index.php/362484?newtest=Y&lang=en  

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose