- Posts: 10
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Fixing the length of a response
- anuragkh1711
- Topic Author
- Offline
- New Member
Less
More
7 years 3 months ago #146015
by anuragkh1711
Fixing the length of a response was created 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.
- tammo
- Offline
- Official LimeSurvey Partner
Less
More
- Posts: 962
- Thank you received: 216
7 years 3 months ago #146016
by tammo
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
Replied by tammo on topic Fixing the length of a response
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
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.
- DenisChenu
- Away
- LimeSurvey Community Team
Less
More
- Posts: 13912
- Thank you received: 2549
7 years 3 months ago #146018
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Fixing the length of a response
Hi,
Where did you put strlen(QuestionCode) == 5 ? And what is the question type + code(s)
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 service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: anuragkh1711
The topic has been locked.
- anuragkh1711
- Topic Author
- Offline
- New Member
Less
More
- Posts: 10
- Thank you received: 0
7 years 2 months ago #146230
by anuragkh1711
Replied by anuragkh1711 on topic Fixing the length of a response
I realized that I need to input "this" instead of question code.
Thanks a lot for your support.
Thanks a lot for your support.
The topic has been locked.
- DenisChenu
- Away
- LimeSurvey Community Team
Less
More
- Posts: 13912
- Thank you received: 2549
7 years 2 months ago #146238
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Fixing the length of a response
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 service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: anuragkh1711
The topic has been locked.