Welcome to the LimeSurvey Community Forum

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

Como colocar a opção Outro no topo das respostas?

  • gloriads
  • gloriads's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 2 months ago #211971 by gloriads
Olá, espero que estejam bem 

Tenho várias questões em que preciso colocar a opção outro por cima das respostas e sei que isso é possível usando javascript porque achei no fórum inglês, mas por algum motivo não está funcionando. Acredito que seja porque não estou sabendo colocar o QID correto da questão. Segue anexo o exemplo de questão e o código que peguei do fórum: <script type="text/javascript" charset="utf-8">
$(document).ready(function(){
 
// Identify this question
var q1ID = '{QID}';
var q1 = $('#question'+q1ID+'');
 
// Hide the "Other" radio button and label
$('.other-item input.radio, .other-item .answertext', q1).hide();
 
// Move the "Other" row to the top
$('.radio-list', q1).prepend($('.other-item', q1));
});
</script> Agradeço desde já!
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 2 months ago #211977 by Joffm
Isso é para uma versão diferente (versão 2.6.7)


Mas você pode usar isso
[url] manual.limesurvey.org/Workarounds:_Manip...meSurvey_version_3.x :[/url]

Isso é para uma versão diferente (versão 2.6.7)

Mas você pode usar isso
[url] manual.limesurvey.org/Workarounds:_Manip...meSurvey_version_3.x :[/url]

  

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: gloriads
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose