- Posts: 3
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
"Other"-Field as first answer choice
- Someone2109
- Topic Author
- Offline
- New Member
Less
More
8 years 5 months ago #128723
by Someone2109
"Other"-Field as first answer choice was created by Someone2109
Hello everybody!
My organization has been using limesurvey for an extended amount of time and we love it! However there is a thing that we would love to do:
Having a question with radio-botton-answers, the "other"-option and text field is always the last one in the answer list per default. How can I get this to be the first one? This is important to me because I have a question close to: "How many minutes does it take for you to get to your doctor?" with the possible answers of "[text field]" and "I dont have a doctor", and I want the text field to be first. How can I accomplish that? I do have some programming abilities, if that would be necessary.
Greetings from Munich, Germany:
Someone2109
My organization has been using limesurvey for an extended amount of time and we love it! However there is a thing that we would love to do:
Having a question with radio-botton-answers, the "other"-option and text field is always the last one in the answer list per default. How can I get this to be the first one? This is important to me because I have a question close to: "How many minutes does it take for you to get to your doctor?" with the possible answers of "[text field]" and "I dont have a doctor", and I want the text field to be first. How can I accomplish that? I do have some programming abilities, if that would be necessary.
Greetings from Munich, Germany:
Someone2109
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10116
- Thank you received: 3597
8 years 5 months ago #128761
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 "Other"-Field as first answer choice
Add this script to the source of the question:
Code:
<script type="text/javascript" charset="utf-8"> $(document).ready(function(){ $('#question{QID} ul.answers-list').prepend($('#question{QID} ul.answers-list li:last')); }); </script>
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- Someone2109
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
8 years 3 months ago #129853
by Someone2109
Replied by Someone2109 on topic "Other"-Field as first answer choice
Thank you for your reply a while back, I just now got back from a Vacation and couldn't read it before.
This might be a quite stupid followup question, but how do I edit the source code of the question?
This might be a quite stupid followup question, but how do I edit the source code of the question?
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10116
- Thank you received: 3597
8 years 3 months ago #129857
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 "Other"-Field as first answer choice
There is a "Source" button in the editor -
manual.limesurvey.org/Workarounds:_Manip....29_in_LimeSurvey.3F
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- Someone2109
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
8 years 3 months ago #129871
by Someone2109
Replied by Someone2109 on topic "Other"-Field as first answer choice
Worked flawlessly. Thank you very much!
The topic has been locked.