Welcome to the LimeSurvey Community Forum

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

Sufix for Radio Other

  • kevinleung
  • kevinleung's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
4 years 4 months ago #210952 by kevinleung
Sufix for Radio Other was created by kevinleung
Hi all,

May i know if it is possible to add Sufix for "Other" option in Radio question type?
I found a related article, but it is for old version.
[url] forums.limesurvey.org/forum/can-i-do-thi...-for-numerical-input [/url]
How can I change to 3.X version? Thank you.

Regards,
Kevin
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 4 months ago #210973 by tpartner
Replied by tpartner on topic Sufix for Radio Other
Do you just want to insert a suffix or do you want to move the text input as in the linked thread?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • kevinleung
  • kevinleung's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
4 years 4 months ago #211062 by kevinleung
Replied by kevinleung on topic Sufix for Radio Other
Hi tpartner,
Just want to insert a suffix. Thank you.
By the way, that is the meaning of 'linked thread'?
Kevin
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 4 months ago #211067 by Joffm
Replied by Joffm on topic Sufix for Radio Other
In your post you inserted a link to another thread.
This is the 'linked thread'.
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • kevinleung
  • kevinleung's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
4 years 4 months ago #211069 by kevinleung
Replied by kevinleung on topic Sufix for Radio Other
Hi Joffm,
Thanks!
In the thread example, I think I can label "Other" to be "About" and sufix to be "customers order online."
The result is the same....
https://forums.limesurvey.org/forum/attachment/10505
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 4 months ago #211127 by tpartner
Replied by tpartner on topic Sufix for Radio Other
This will move the input as in the linked thread (I think that's the best solution for screen-size responsiveness):
 
JavaScript:
     
Code:
<script type="text/javascript" data-author="Tony Partner">    
    $(document).on('ready pjax:scriptcomplete',function(){
        $('#question{QID} .radio-text-item span.value').after($('#question{QID} .radio-text-item :text')).remove();
    });
</script>

Label for "Other":
   
Code:
About <span class="value">x</span> customers order online.



Sample survey attached: 

File Attachment:

File Name: limesurvey...5668.lss
File Size:18 KB

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • kevinleung
  • kevinleung's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
4 years 4 months ago #211192 by kevinleung
Replied by kevinleung on topic Sufix for Radio Other
Thank you, tpartner!!
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose