Welcome to the LimeSurvey Community Forum

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

Fixing the length of a response

  • anuragkh1711
  • anuragkh1711's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 4 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
  • tammo's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
7 years 4 months ago #146016 by tammo
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 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
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 4 months ago #146018 by DenisChenu
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)

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
  • anuragkh1711's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 4 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. :cheer:
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 4 months ago #146238 by DenisChenu
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.

Lime-years ahead

Online-surveys for every purse and purpose