Welcome to the LimeSurvey Community Forum

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

Leading zeros removed during display

  • LSCitizen
  • LSCitizen's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 6 months ago #112513 by LSCitizen
Leading zeros removed during display was created by LSCitizen
Hello,
I have created a question that displays text and numerical data in a grid form.
This survey also uses token records. When the attribute value begins with zeros, the zeors are removed and the number is changed.

I am using LimeSurvey Version 2.05+ Build 140226.
I've attached a copy of the survey.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 6 months ago #112520 by DenisChenu
Replied by DenisChenu on topic Leading zeros removed during display
Hi,

Numerical is numerical , the 001==1
If you want to kee the leading 0 : use Text.

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 topic has been locked.
  • c_schmitz
  • c_schmitz's Avatar
  • Offline
  • LimeSurvey GmbH Employee
  • LimeSurvey GmbH Employee
More
9 years 6 months ago #112530 by c_schmitz
Replied by c_schmitz on topic Leading zeros removed during display
Btw, your version is old and very unsafe. Please update.

Best regards

Carsten Schmitz
LimeSurvey project leader
The topic has been locked.
  • LSCitizen
  • LSCitizen's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 6 months ago #112550 by LSCitizen
Replied by LSCitizen on topic Leading zeros removed during display
I am using the short free text question type for the zip code value and the Numbers Only field is set to NO.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 6 months ago #112552 by holch
Replied by holch on topic Leading zeros removed during display
Where does this happen? In the LS database or in Excel for example? Could be actually a Excel problem...

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • LSCitizen
  • LSCitizen's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 6 months ago #112555 by LSCitizen
Replied by LSCitizen on topic Leading zeros removed during display
It occurs when the instrument is launched.
I've attached a document that explains the issue.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 6 months ago #112559 by tpartner
Replied by tpartner on topic Leading zeros removed during display
I don't have a solution but this is not a problem with the token attribute, it's a problem with the way EM is piping in the value of the "ZIP" question.

The default value is being loaded correctly into "ZIP" but if that question is hidden by conditions it is not piped correctly.

If you remove the conditions from "ZIP" so it is always shown or modify the value of "ZIP", the piping works fine.


.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • LSCitizen
  • LSCitizen's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 6 months ago #112562 by LSCitizen
Replied by LSCitizen on topic Leading zeros removed during display
I need to keep the condition so that if the value is updated by the user, the updated value displays.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 6 months ago #112564 by holch
Replied by holch on topic Leading zeros removed during display
What is really weird is that it not only removes leading zeros. It also changes the actual value from "00123" to "83".

I think this needs to be investigated further. Could you please make a bug report?

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • LSCitizen
  • LSCitizen's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 5 months ago #112669 by LSCitizen
Replied by LSCitizen on topic Leading zeros removed during display
I have submitted a bug report for this issue:
bugs.limesurvey.org/view.php?id=9240
The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 5 months ago #112736 by DenisChenu
Replied by DenisChenu on topic Leading zeros removed during display

LSCitizen wrote: I have submitted a bug report for this issue:
bugs.limesurvey.org/view.php?id=9240

Thanks , fixed.

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

Lime-years ahead

Online-surveys for every purse and purpose