Check out the LimeSurvey source code on GitHub!

Javascript filled answer is not saved in Database

More
5 years 7 months ago #63188 by speedtuga
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

Please Log in to join the conversation.

More
5 years 7 months ago - 5 years 7 months ago #63192 by DenisChenu

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 development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
Last Edit: 5 years 7 months ago by DenisChenu.

Please Log in to join the conversation.

More
5 years 7 months ago #63200 by speedtuga
:cheer: That's it...

I didn't remembered that one.

Thank you.

Best Regards,
Nuno

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form