Welcome to the LimeSurvey Community Forum

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

Domanda a scelta multipla con commenti

  • Irene1m
  • Irene1m's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 5 months ago - 2 years 5 months ago #222009 by Irene1m
Buonasera, sto avendo difficoltà con una domanda di per se molto semplice. E' possibile creare una domanda a scelta multipla con commenti solo in determinate risposte? 

Es.      Indicare quali tra i seguenti?  
                          _ Intolleranza al lattosio
                          _ Altre intolleranze [indicare]
                          _Allergie [indicare]
                          _Diete mediche

Avrei bisogno di inserire i commenti solo nelle due risposte centrali. Grazie in anticipo per l'aiuto. Saluti
Last edit: 2 years 5 months ago by Irene1m.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 5 months ago #222014 by Joffm
Replied by Joffm on topic Domanda a scelta multipla con commenti
Sì, devi solo rimuovere i commenti che non vuoi.

Includi questo nel codice sorgente della domanda.
Questo rimuove il primo ("eq(0)") e il quarto ("eq(3)") commento
Code:
<script type="text/javascript" charset="utf-8">
$(document).ready(function() { 
 var thisQuestion = $('#question{QID}');
// Remove some text inputs
$('.checkbox-text-item:eq(0) .comment-item', thisQuestion).remove();
$('.checkbox-text-item:eq(3) .comment-item', thisQuestion).remove();
});
</script>

 

Joffm
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: lfanfoni
The topic has been locked.
  • Irene1m
  • Irene1m's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 5 months ago #222015 by Irene1m
Replied by Irene1m on topic Domanda a scelta multipla con commenti
La ringrazio infinitamente!
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose