Welcome to the LimeSurvey Community Forum

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

Añadir opción "Otra" en eje Y de Matriz de Números

  • Encuestas_enred_1
  • Encuestas_enred_1's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 3 months ago #208833 by Encuestas_enred_1
Hola,
Necesito añadir una subpregunta en el eje Y de una matriz de números que sea "Otro" con un espacio para introducir texto. ¿se puede?
Muchas gracias.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 3 months ago #208847 by Joffm
Hola,
Después de la matriz, cree una pregunta del tipo "texto corto".
Inserte este javascript en el texto de la pregunta de la matriz (modo de código fuente)
Code:
<script type="text/javascript" charset="utf-8">
 
  $(document).ready(function() {
 
    // Identify the questions
    var thisQuestion = $('#question'+{QID}+'');
    var nextQuestion1 = $(thisQuestion).nextAll('.text-short:eq(0)');
 
    // Hide the short-text question
    $(nextQuestion1).hide();
 
    // Move the hidden text input into the array (second last row)
    var rowCount = $('th.answertext', thisQuestion).length;
    $('th.answertext:eq('+(rowCount-1)+')', thisQuestion).append($('input[type="text"]', nextQuestion1)).closest('tr').addClass('otherRow');
 
    // Some styling...
    $('input[type="text"]', thisQuestion).css({
      'width': '100%'
    });
  });
</script>



Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: Encuestas_enred_1
The topic has been locked.
More
3 years 2 months ago #210332 by direyesm
podrias subir la encuesta .lss ya que hice el intento y no me funciono
The topic has been locked.
More
3 years 1 month ago #211510 by Alfonso_
Buenas tardes,

No logro aplicar todo el proceso, agradecería mucho que subieras el archivo .lsq

¿Es posible?

Muchas gracias.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 1 month ago #211522 by Joffm
Hola,

No logro aplicar todo el proceso

¿Qué significa eso?

que subieras el archivo .lsq

Al contrario: debes enviar tu lss para que podamos ver y corregir un error de tu parte.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
More
3 years 1 month ago #211569 by Alfonso_
Buenas tardes @Joffm, finalmente lo tengo!

Muchas gracias.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose