The LimeSurvey Fund-Raiser 2012 is complete. Thank you for donating a total of 25,000 USD!     List of donors »

Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:
  • Seite:
  • 1

THEMA: Is there a possibility to get the value of a answertextfield out?

Is there a possibility to get the value of a answertextfield out? 4 Monate 1 Woche her #91004

Hallo,

Is there any possibility to get the value out of an answertextfield, to use it in a javascript variable? Something like getElementById(). I would use this method to give an output to the participants what links in the questiontext they had clicked on for further information. So I have to put the new created javascript variable back in the textfield. I hope someone can help me with this part.

Thank you very much

Alexandra
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Is there a possibility to get the value of a answertextfield out? 4 Monate 5 Tage her #91069

  • DenisChenu
  • DenisChenus Avatar
  • OFFLINE
  • Moderator Lime
  • Beiträge: 4374
  • Dank erhalten: 451
  • Karma: 165
The answer are in the same page or in another page ?

With the 1st question code to QCODE:
If it's another page, use default answer and set {QCODE.shown} at this one.
In the same page use:
$("#question{QCODE.qid} input.text").val() to have the value of the input.

Denis
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Folgende Benutzer bedankten sich: alexandra1977
  • Seite:
  • 1
Moderatoren: DenisChenu, ITEd
Ladezeit der Seite: 0.165 Sekunden
Donation Image