- Posts: 6
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Adding "Other:" option to array
- pari2205
- Topic Author
- Offline
- New Member
Less
More
2 years 3 weeks ago #226839
by pari2205
Adding "Other:" option to array was created by pari2205
Please help us help you and fill where relevant:
Your LimeSurvey version: [see right hand bottom of your LimeSurvey admin screen]
Own server or LimeSurvey hosting:
Survey theme/template:
==================
Hello everybody,
I was wondering if it is possible to add to the end of the Subquestions in an array the "Other:" option, so that the user can write in their own subquestion and then select one of the Answer options.
The selector fot the "Other: option" does not come up on the settings for the array question category.
Thank you very much.
Your LimeSurvey version: [see right hand bottom of your LimeSurvey admin screen]
Own server or LimeSurvey hosting:
Survey theme/template:
==================
Hello everybody,
I was wondering if it is possible to add to the end of the Subquestions in an array the "Other:" option, so that the user can write in their own subquestion and then select one of the Answer options.
The selector fot the "Other: option" does not come up on the settings for the array question category.
Thank you very much.
Please Log in to join the conversation.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
2 years 3 weeks ago #226841
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 Adding "Other:" option to array
Why didn't you answer the questions at the top of the form? We have no clue about your LimeSurvey installation.
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: pari2205
Please Log in to join the conversation.
- pari2205
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
2 years 3 weeks ago #226848
by pari2205
Replied by pari2205 on topic Adding "Other:" option to array
Sorry, I'm very new about this.
Version 5.3.6, Limesurvey Cloud
Version 5.3.6, Limesurvey Cloud
Please Log in to join the conversation.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
2 years 3 weeks ago #226851
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 Adding "Other:" option to array
Add a short-text question in the same group directly after the array question and then add this scripot to the source of the array question:
Sample survey attached:
Code:
<script type="text/javascript" data-author="Tony Partner"> $(document).on('ready pjax:scriptcomplete',function(){ // Identify the questions var thisQuestion = $('#question{QID}'); var nextQuestion = thisQuestion.nextAll('.text-short:eq(0)'); // Hide the next question nextQuestion.hide(); // Move the text inputs $('tr[id^="javatbd"]:last th.answertext', thisQuestion).append($('.answer-item', nextQuestion)); // Clean-up styling $('th.answertext .answer-item', thisQuestion).css({ 'padding': 0 }); $('th.answertext .answer-item div', thisQuestion).css({ 'padding': 0 }); }); </script>
Sample survey attached:
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: pari2205, KatMey99
Please Log in to join the conversation.
- pari2205
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
2 years 3 weeks ago #226853
by pari2205
Replied by pari2205 on topic Adding "Other:" option to array
Thank you. I only have one last question: how can I open the file .lss you attached so that I can make sure I am doing everything right?
Please Log in to join the conversation.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
2 years 3 weeks ago - 2 years 3 weeks ago #226854
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 Adding "Other:" option to array
You can open it in any plain-text editor but I don't know why you would. Simply import it as a survey.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 2 years 3 weeks ago by tpartner.
Please Log in to join the conversation.
- pari2205
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
2 years 3 weeks ago - 2 years 3 weeks ago #226855
by pari2205
Replied by pari2205 on topic Adding "Other:" option to array
Last edit: 2 years 3 weeks ago by pari2205.
Please Log in to join the conversation.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
2 years 3 weeks ago #226856
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 Adding "Other:" option to array
Did you look at your post? Don't paste images, use the editor to insert them.
Did you try importing my survey? This is why I provide them.
Did you try importing my survey? This is why I provide them.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Please Log in to join the conversation.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
2 years 3 weeks ago #226857
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 Adding "Other:" option to array
Do you have permissions to insert JavaScript?
- manual.limesurvey.org/Workarounds:_Manip...tc..29_in_LimeSurvey
- 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.
Please Log in to join the conversation.
- pari2205
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
2 years 3 weeks ago #226858
by pari2205
Replied by pari2205 on topic Adding "Other:" option to array
Yes, I edited the post.
Unfortunately I cannot import your survey nor anything because I am not the site admin: we are doing this survey for a University project and our professor is the admin.
Unfortunately I cannot import your survey nor anything because I am not the site admin: we are doing this survey for a University project and our professor is the admin.
Please Log in to join the conversation.
- Joffm
- Away
- LimeSurvey Community Team
Less
More
- Posts: 12941
- Thank you received: 3979
2 years 3 weeks ago #226859
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Adding "Other:" option to array
But your screenshot looks as if you are not allowed to enter javascript code.
Ask the admin of your LimeSurvey installation.
The XSS filter seems to be activated.
If you have the rights to do this you only
add the script to the question text in source code mode.
And create a subquestion called "Others"
Joffm
Ask the admin of your LimeSurvey installation.
The XSS filter seems to be activated.
If you have the rights to do this you only
add the script to the question text in source code mode.
And create a subquestion called "Others"
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: pari2205
Please Log in to join the conversation.
- pari2205
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
2 years 3 weeks ago #226860
by pari2205
Replied by pari2205 on topic Adding "Other:" option to array
I will ask her, thank you
Please Log in to join the conversation.