Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Javascript filled answer is not saved in Database

Javascript filled answer is not saved in Database 5 years 1 month ago #63188

  • speedtuga
  • speedtuga's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 6
  • Karma: 0
Hi,

I have some answers ("input") that are disabled at my survey because I am using javascript to fill the answer. The problem is that, the value is not saved in database.

I am using...
$("#answer56711X121X2131").val(myvalue);
...to set the value, but at my lime_survey_56711 table I don't have any answer.

Is this possible?
Can someone help me with this?

Thank you very much,
Nuno
The administrator has disabled public write access.

Javascript filled answer is not saved in Database 5 years 1 month ago #63192

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9298
  • Thank you received: 1330
  • Karma: 386
I have some answers ("input") that are disabled
Don't disabled it. Disabled input aren't sent in POST.

Put it readonly (and you can hide it).

:)
Assistance on LimeSurvey forum and LimeSurvey core developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
Last Edit: 5 years 1 month ago by DenisChenu.
The administrator has disabled public write access.

Javascript filled answer is not saved in Database 5 years 1 month ago #63200

  • speedtuga
  • speedtuga's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 6
  • Karma: 0
:cheer: That's it...

I didn't remembered that one.

Thank you.

Best Regards,
Nuno
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.180 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form