Welcome to the LimeSurvey Community Forum

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

Radiobutton, texfield for 'other' to the right side

  • Jmantysalo
  • Jmantysalo's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
3 years 3 months ago #208798 by Jmantysalo
Is it possible to have a question like

How often you cut your hair?
( ) I am as bald as Jean Luc-Picard.
( ) ___ times per a year.

i.e. to have the other-input in the left and the other-text in the right?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 3 months ago #208813 by tpartner
LimeSurvey version?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • Jmantysalo
  • Jmantysalo's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
3 years 3 months ago #208819 by Jmantysalo
Always this... Versio 4.3.27+201116. Hopefully I got this to signature too, as I seem to never remember this.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 3 months ago #208826 by tpartner
Add this to the question source:

Code:
<script type="text/javascript" charset="utf-8">  
  $(document).on('ready pjax:scriptcomplete',function(){
 
    // Move the "Other" text input
    $('#question{QID} .answer-item:last label:eq(0)').prepend($('#question{QID} .answer-item:last input:text'));
    });
</script>

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: Jmantysalo
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 3 months ago - 3 years 3 months ago #208867 by holch

Hopefully I got this to signature too, as I seem to never remember this.

Problem with the signature: No one looks at them, especially when you are not a new user. ;-)

Believe me, I regulary get questions via PM. *lol*

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

Last edit: 3 years 3 months ago by holch.
The following user(s) said Thank You: DenisChenu, Jmantysalo
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose