Welcome to the LimeSurvey Community Forum

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

Fixing the length of a response

More
8 years 8 months ago #146015 by anuragkh1711
Is there a way to fix a length of a response. I am trying to limit my numeric input to 5 characters with strlen(QuestionCode) == 5 but it is showing error.
The topic has been locked.
More
8 years 8 months ago #146016 by tammo
This may depend on the type of question. Some question types give you the option of specifying the max number of charaters that can be used. Look in advanced options of the question.

Tammo


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The following user(s) said Thank You: anuragkh1711
The topic has been locked.
More
8 years 8 months ago #146018 by DenisChenu
Hi,

Where did you put strlen(QuestionCode) == 5 ? And what is the question type + code(s)

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 following user(s) said Thank You: anuragkh1711
The topic has been locked.
More
8 years 8 months ago #146230 by anuragkh1711
I realized that I need to input "this" instead of question code.

Thanks a lot for your support. :cheer:
The topic has been locked.
More
8 years 8 months ago #146238 by DenisChenu
Sometimes, i prefer to use real question code : it must work not QuestionCode but THE code/title of the question.

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 following user(s) said Thank You: anuragkh1711
The topic has been locked.
Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose