Welcome to the LimeSurvey Community Forum

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

Leading zeroes in numerical response

  • bjornb2513
  • bjornb2513's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 4 months ago #159858 by bjornb2513
Leading zeroes in numerical response was created by bjornb2513
Hi,

I am constructing a survey that needs to allow numerical responses beginning with leading zeroes:

e.g. age range 01- 98

However, Limesurvey by default does not allow leading zeroes when responding. Is there a solution to this?

I am using version 2.72.1

Thanks in advance.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 4 months ago #159862 by DenisChenu
Replied by DenisChenu on topic Leading zeroes in numerical response
Use a short text question, and a regexp /^[0-9]{2}/ for example.

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: bjornb2513
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose