- Posts: 26
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Mostrar respuestas listas desplegables
- Benitovich
- Topic Author
- Offline
- Junior Member
Less
More
2 years 11 months ago #215651
by Benitovich
Mostrar respuestas listas desplegables was created by Benitovich
Buenas tardes
Estoy elaborando una encuesta en la que tengo una lista desplegable en la que hay que elegir una respuesta, al final de la encuesta he realizado una “Revisión de respuestas” tipo:
muchas gracias por vuestra ayuda.
Estoy elaborando una encuesta en la que tengo una lista desplegable en la que hay que elegir una respuesta, al final de la encuesta he realizado una “Revisión de respuestas” tipo:
- A1.question}: {A1.shown}
- {A2.question}: {A2.shown}
- {A1.question}: {A1.shown}
- {A2.question}: {A2.shown}
- {A3.question}: {A3.shown}
- {A4.question}: {A4.shown}
- {A5.question}: {A5.shown}
- {A6.question}: {A6.shown}
- {A7.question}: {A7.shown}
- {A8.question}: {A8.shown} solo quiero que se muestre la que ha seleccionado el usuario
- {A9.question}: {A9.shown}
- {A10.question}: {A10.shown}
muchas gracias por vuestra ayuda.
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12932
- Thank you received: 3978
2 years 11 months ago #215661
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Mostrar respuestas listas desplegables
¿Asi?
Tienes que usar el código de la pregunta, no las opciones de respuesta.
{Q1.question}: {Q1.shown}
No mas.
Joffm
Tienes que usar el código de la pregunta, no las opciones de respuesta.
{Q1.question}: {Q1.shown}
No mas.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
- Benitovich
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 26
- Thank you received: 0
2 years 11 months ago - 2 years 11 months ago #215667
by Benitovich
Replied by Benitovich on topic Mostrar respuestas listas desplegables
Buenas tardes Joffm
No me he explicado correctamente, son listas desplegables dependientes y solo quiero se muestren las respuestas elegidas, te adjunto imagen. La estructura de las preguntas es la siguiente
Elegir Zona
Muchas gracias por tu ayuda.
No me he explicado correctamente, son listas desplegables dependientes y solo quiero se muestren las respuestas elegidas, te adjunto imagen. La estructura de las preguntas es la siguiente
Elegir Zona
- {C2.question}: {C2.shown}
- {C3.question}: {C3.shown}
- {C5.question}: {C5.shown}
- {C7.question}: {C7.shown}
- {C4.question}: {C4.shown}
- {C6.question}: {C6.shown}
- {C8.question}: {C8.shown}
Muchas gracias por tu ayuda.
Attachments:
Last edit: 2 years 11 months ago by Benitovich. Reason: Modificación
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12932
- Thank you received: 3978
2 years 11 months ago #215673
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Mostrar respuestas listas desplegables
Usa la función IF
{IF (C2 == codigo de NORTE, C3.question + ": *+C3.shown,C4.question + ": *+C4.shown}
...
{IF (C2 == codigo de NORTE, C3.question + ": *+C3.shown,C4.question + ": *+C4.shown}
...
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12932
- Thank you received: 3978
2 years 11 months ago #215678
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Mostrar respuestas listas desplegables
Quizás te resultas más fácil utilizar la función "is_empty()".
Aquí está el código fuente. Es mejor ver la estructura.
Aquí está el código fuente. Es mejor ver la estructura.
<p>{C2.question}: <b>{C2.shown}</b></p>
<p>
{if(!is_empty(C3), C3.question + ": <b>"+C3.shown+"</b>","")}
{if(!is_empty(C4), C4.question + ": <b>"+C4.shown+"</b>","")}
</p>
<p>
{if(!is_empty(C31), C31.question + ": <b>"+C31.shown+"</b>","")}
{if(!is_empty(C32), C32.question + ": <b>"+C32.shown+"</b>","")}
...
{if(!is_empty(C41), C41.question + ": <b>"+C41.shown+"</b>","")}
...
</p>
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
- Benitovich
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 26
- Thank you received: 0
2 years 11 months ago #215679
by Benitovich
Replied by Benitovich on topic Mostrar respuestas listas desplegables
Muchas gracias por tu rápida solución.
A disfrutar del día.
A disfrutar del día.
The topic has been locked.