Check out the LimeSurvey source code on GitHub!

code length in question type L (Radio list)

More
4 years 1 month ago #91144 by RBornat
In version 2.00, but perhaps not in 1.92, it is impossible to set a code which has more than five characters for a choice in a L question -- for example I can have 'progr' but not 'progress'. This contrasts with (for example) M questions, which can have longer codes (no limit, so far as I can see).

Is there something I missed in the manual? Is this a bug or a feature?

PS I found it by trying to load a .lss file which broke this rule. It told me only

Error: Failed to insert data[6]

which wasn't very informative (sorry).

Please Log in to join the conversation.

More
4 years 1 week ago #92438 by dweisser
Did you ever find a resolution to this issue? I need to have Label codes of greater than 5 characters. I changed the varchar in the database in lime_answers and lime_labels to no avail.
Anything?
-Nebraska

Please Log in to join the conversation.

More
4 years 1 week ago #92451 by RBornat
No I didn't get any sort of response, and I haven't had time (yet) to turn myself into a php hacker. I wondered if I'd posted in the wrong place, or the wrong tone of voice, or something.

It is a very annoying restriction.

Richard

Please Log in to join the conversation.

More
4 years 1 week ago #92489 by DenisChenu

RBornat wrote: It is a very annoying restriction.

Don't undeerstand why a "More than 5 caracters" canbe good

10 caracters: use 2x space from DB, some user don't have big DB. And there are limiting issue with mySQL ISAM, if we set this to 20/25 caracter, there are more and more limit issue.

If you don't have time to hack PHP code, you can contact a LimeSUrvey developper for services.

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).

Please Log in to join the conversation.

More
4 years 1 week ago #92505 by RBornat
The odd thing is: it only seems to apply to L type questions. Other questions (e.g. M, as I said in my first post) have no such restriction. So if there are database issues for L, so there must be for M.

If that's not so, can you explain the difference?

Respectfully yours,
Richard

Please Log in to join the conversation.

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