How is autoCompleteOneColumn supposed to work with a 2-column csv file?
jeanbaptisteb opened this issue · comments
Hello,
Really great and useful plugin. With a couple of coworkers, we've installed it on a local installation of LimeSurvey. I have a question regarding the "autoCompleteOneColumn" feature.
The documentation says
autoCompleteOneColumn: (only for short text) If you use only the 1st column of the csv file : data and value are in this column. If you use 2 column : data fill the answer, but value are shown to the user.
- multiple text or array text question use only one column
It's not entirely clear to me, but here's what I understood and tried so far:
Assuming I deactivated the autoCompleteOneColumn option, and that I uploaded a csv with the following structure:
Continent | Country |
---|---|
Europe | Spain |
America | USA |
Europe | Germany |
A user will be presented with the following interface if she starts typing "Spain" in the field.
"Europe" appears nowhere.
After the user selects "Spain" in the list, here's what the field looks like:
But if I understand correctly "Europe" will be recorded in the Limesurvey database, instead of "Spain", even if Spain is showed to the user.
Am I right? Or did I misunderstand something, and it's not supposed to work like that?
I would have to activate my survey to check myself how this option actually works and if "Europe" is recorded in the database. But it would be quite impractical for me, as activating a survey prevents from changing it afterwards. Also, the answer to this question could be useful to other people who may have the same question.
Thanks!