Leading Zero's need to be preserved in numbers while exporting to CSV.

Created on 26 December 2017, over 7 years ago
Updated 20 December 2024, 4 months ago

I want to export Phone number with Country prefix, which has some leading zeros in it. I want to make this field automatically exported as a text field. I can make it render as a text field by adding some characters to it but it will also add some undesirable characters to it.

Ex Format of Phone number : 0033123456789

💬 Support request
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India Amit Dwivedi

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇬🇧United Kingdom steven jones

    If you want to edit the formatting of the fields that are exported, you'll need to look into Views or Field formatters, as the data export system only does some light rendering of the data that is otherwise provided by Views.

    For example, you'd have the exact same problem if you were rendering an HTML table, so fix it for that use-case and then it'll work when you export to CSV using this module too.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024