Welcome to the LimeSurvey Community Forum

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

Reemplazar texto por asteriscos

  • ricardovelbau
  • ricardovelbau's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 months 1 week ago #254719 by ricardovelbau
Reemplazar texto por asteriscos was created by ricardovelbau
Ayúdenos a ayudarle y rellene los siguientes campos:.
Su versión de LimeSurvey: 5.6.0
Servidor propio o LimeSurvey Cloud: Propio
Plantilla de diseño utilizada: Default
==================
Buenos días foro, 

Tenemos una encuesta de ejemplo, en donde requerimos que una pregunta de texto corto, reemplace el texto por asteriscos a la hora de escribir, pero obviamente en la base de datos ver el valor real. 
¿Se puede hacer esto? Y en caso de que si, ¿cómo se haría?

Adjunto lss.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 months 1 week ago #254727 by Joffm
Replied by Joffm on topic Reemplazar texto por asteriscos
Hola,
Pegue esto en el código fuente de la pregunta.
Code:
<script>
   $(document).ready(function() {    
 
       var thisQuestion = $('#question{QID}');
       $('input[type=text]', thisQuestion).attr('type','password');
    });
</script>

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: ricardovelbau

Please Log in to join the conversation.

  • ricardovelbau
  • ricardovelbau's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 months 1 week ago #254731 by ricardovelbau
Replied by ricardovelbau on topic Reemplazar texto por asteriscos
Muchas gracias Joffm, funcionó.

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose