Welcome to the LimeSurvey Community Forum

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

Insertar valor en el campo de texto

  • ricardovelbau
  • ricardovelbau's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 month 2 days ago #258983 by ricardovelbau
Insertar valor en el campo de texto 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
==================


Buenas noches foro, 

Quisiera saber si se puede insertar un valor que obtengo con un código de la pregunta de short text, en su propio campo de texto, para poder guardar ese valor en mi base de datos.

Adjunto captura de la pregunta, así como el archivo lsq

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Online
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 month 2 days ago #258985 by Joffm
Replied by Joffm on topic Insertar valor en el campo de texto
Por favor,
solo envíes un archivo lss, ni lsq ni lsg.

Joffm 

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • ricardovelbau
  • ricardovelbau's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 month 1 day ago #258986 by ricardovelbau
Replied by ricardovelbau on topic Insertar valor en el campo de texto
Una disculpa, envío lss

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Online
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 month 1 day ago #258999 by Joffm
Replied by Joffm on topic Insertar valor en el campo de texto
Uses una pregunta "multiple textos cortos"
Tienes que añadir al script
Code:
         $('#question{QID} input[type="text"]:eq(0)').val(latitude);
          $('#question{QID} input[type="text"]:eq(1)').val(longitude);
          $('#question{QID} input[type="text"]:eq(2)').val(locationName);
          $('#question{QID} input[type="text"]:eq(3)').val(country);
          $('#question{QID} input[type="text"]:eq(4)').val(city);
          $('#question{QID} input[type="text"]:eq(5)').val(road);
 



Puedes eliminar la parte para mostrarla como texto.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • ricardovelbau
  • ricardovelbau's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 month 1 day ago #259033 by ricardovelbau
Replied by ricardovelbau on topic Insertar valor en el campo de texto
Muchas gracias Joffm, me funcionó como quería.

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose