Welcome to the LimeSurvey Community Forum

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

How is the answer input field saved in database?

  • sodiumchl
  • sodiumchl's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
4 years 1 month ago #207683 by sodiumchl
I am trying to replace a short-text input field with my custom input field, like in arrayTextAdapt. But my answer does not get saved in the survey response.

From arrayTextAdapt, it seems I only need to use the same id (e.g., answer123456X3X23) in my custom input field as in the existing input field. But this does seem to be enough. Please help.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
4 years 1 month ago #207691 by DenisChenu
Replied by DenisChenu on topic How is the answer input field saved in database?
Same name it's the most important

name => sent to PHP
id => used by javascript (and label)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
  • sodiumchl
  • sodiumchl's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
4 years 1 month ago #207730 by sodiumchl
Replied by sodiumchl on topic How is the answer input field saved in database?
Aha!
After setting the name attribute to "123456X3X23" it works now.
Thank you so much!
The topic has been locked.
Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose