- Posts: 7
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Array Question with "Other" Answer
- aarontimos
- Topic Author
- Offline
- New Member
Less
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
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
2 years 7 months ago #219864
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
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!
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
2 years 7 months ago #219890
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
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
- 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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11639
- Thank you received: 2737
2 years 6 months ago #219944
by holch
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.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
2 years 6 months ago #219946
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
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
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
- Offline
- Official LimeSurvey Partner
1 year 6 months ago #232527
by Mazi
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
Replied by Mazi on topic Array Question with "Other" Answer
There are several great JS based solutions at the forums provided by tpartner.It is not possible to move a text input from another question into an array without using JavaScript.
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.