Check out the LimeSurvey source code on GitHub!

Maximum lenght of question / subquestions and answer codes?

More
4 years 2 months ago #90073 by cris_m
Hi there,

What is the maximum length of question / subquestions and answer codes in LimeSurvey 2?

The interface allows me to enter 20 characters for the question code, 20 for the subquestion code (options in Multiple choice questions) and 5 for the answer code (options in List questions). I seem to remember reading somewhere on the manual for v.1.92 that the length was shorter.

We need to know how to deal with some metadata, so the length of these fields is very important to us.

Thank you,
Cristina

Please Log in to join the conversation.

More
4 years 2 months ago #90096 by tpartner
No, I don't think they are shorter. The database field types are:

- lime_questions (title) - varchar(20)
- lime_answers (code) - varchar(5)

And sub-questions are in the lime_questions table so the allowed lengths are indeed:

Question codes - 20
Subquestion codes - 20
Answer codes - 5

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: cris_m

Please Log in to join the conversation.

More
4 years 2 months ago #90101 by cris_m
Thank you very much for the prompt response!

Please Log in to join the conversation.

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