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

More
4 years 9 months ago #91004 by alexandra1977
alexandra1977 created the topic: Is there a possibility to get the value of a answertextfield out?
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

Please Log in to join the conversation.

More
4 years 9 months ago #91069 by DenisChenu
DenisChenu replied the topic: Is there a possibility to get the value of a answertextfield out?
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

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
The following user(s) said Thank You: alexandra1977

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now