Show/store mobile number in the correct format

Hi all,

I’m in South Africa, and our mobile numbers are in the format 000 000 0000 (e.g. 082 145 3264). When storing a number like the aforementioned in Appsheet, though, it ignores the leading zero. Is there a way to preserve this first zero? Or must the number be entered with the dialing code (which no-one over here really does)?

Thanks

Solved Solved
0 16 5,268
1 ACCEPTED SOLUTION

Okay, thanks Aleksi, it’s working with the Excel fields set to Text

View solution in original post

16 REPLIES 16

@Hardyman instead of using number, you should use either phone or text field for your phone number.

@Aleksi I do use the Phone Type field, as that enables the messaging and call shortcuts, but the leading zero is still discarded.

Let me test this…

For me it’s working fine with the leading zero when the field type is phone. What is your column type in your spreadsheet?

It’s a custom type with the format 0000000000

When you save the record and if you check the value from the spreadsheet, what is the exact value? Is it like '012 345 6789 or 123456789?

I removed the custom number format from the spreadsheet, regenerated the relevant column, and added a new entry. The leading zero for the new entry is also not visible in the app, and in the spreadsheet the leading zero is also discarded.

What I saw now, after I save a new entry (with a full mobile number) and before I sync the app, the leading zero is shown in the detail view of the entry. But after I sync the app, the leading zero disappears from the detail view (and does not show in the source spreadsheet).

Is the column type type still a number?

In Appsheet it is a Phone type, and in Excel it is a General type

Change it to text in your Excel.

It is still missing the leading zero

Have you tested with a new record?

Yes, for example I created this new record:
2X_8_8a2b14653a0ad7cfeb8fcd5f0754bef4fe7816a1.png

Then when I save it I get:
2X_e_ebf78a5577be569a465abdad0c7e40c4d687d8f7.png

And you can see, looking at the plain refresh button, after it’s refreshed, the leading zero is gone:
2X_b_b9154e63c4fb3800b96322c767d9e72e1bd05849.png

And in the spreadsheet the number also doesn’t show the leading zero:

Just to confirm, the Mobile Number field type is Phone:
2X_4_45a96c58238819a3e35651dff2290f2e8b3c4f20.png

If the mobile number field is a pure text field, you should see the value like '0862341251. If you see it without ’ it means it’s saving the value as a number and then it will remove the leading zero away.

Okay, thanks Aleksi, it’s working with the Excel fields set to Text

Excellent!

Top Labels in this Space