- Posts: 2
- Thank you received: 0
Leading Zeros in Text Fields
5 years 10 months ago #80968
by jlazerus
jlazerus created the topic: Leading Zeros in Text Fields
Is there a way to keep a full number with a leading zero? It keeps dropping the zero at the beginning and I need it to show up.
Please Log in or Create an account to join the conversation.
5 years 10 months ago - 5 years 10 months ago #80969
by TMSWhite
If you depend upon LimeSurvey or the support team, please give generously to our 2012 fundraiser .
TMSWhite replied the topic: Leading Zeros in Text Fields
Yes, don't use a number field. Use a short text or multiple short text. If you want it to be numeric but with leading zeros, use a regular expression validation like /^[0-9]*$/ to ensure that only numbers can be entered, rather than using the advanced question option "only numbers".
If you depend upon LimeSurvey or the support team, please give generously to our 2012 fundraiser .
- Expression Manager (EM):
Documentation
|
Sample Surveys
|
How Tos
|
Show Logic File
|
Upgrading to 1.92+ - Excel Style for Survey Structure Import/Export
Last Edit: 5 years 10 months ago by TMSWhite.
Please Log in or Create an account to join the conversation.
5 years 10 months ago #80970
by jlazerus
jlazerus replied the topic: Leading Zeros in Text Fields
Awesome, thanks.
Please Log in or Create an account to join the conversation.