# Export field order

**URL:** <https://discuss.zetetic.net/t/export-field-order/6299>\
**Category:** Codebook FAQ\
**Created:** [March 2, 2024, 2:44pm UTC](https://discuss.zetetic.net/t/export-field-order/6299 "2024-03-02T14:44:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![evan2048](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/evan2048/32/1961_2.png) [@evan2048](https://discuss.zetetic.net/u/evan2048)\
**Post date:** [March 2, 2024, 2:44pm UTC](https://discuss.zetetic.net/t/export-field-order/6299/1 "2024-03-02T14:44:48Z")

</div>

Hello, I’m trying to export codebook records with the field order. For example, I have stored security question and answers in the following manner:

When I export, the csv contains a single field with all values of that field type. This loses the correlation between the two fields.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zetetic/original/2X/0/08d277da1c4f6e915c66a6a31dade4674cb2c5eb.png)

I would like to export in JSON or (_gulp_)XML format. Or, I would like query Codebook with an API, SDK or as a database.

Thanks,  
Evan

---

<div class="post-metadata">

**Author:** ![developernotes](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/developernotes/32/1309_2.png) [@developernotes](https://discuss.zetetic.net/u/developernotes)\
**Post date:** [March 4, 2024, 9:23pm UTC](https://discuss.zetetic.net/t/export-field-order/6299/2 "2024-03-04T21:23:12Z")

</div>

Hi @evan2048,

Thank you for reaching out. We will include an adjustment within the next release to maintain field ordering when exporting data. We plan to have a more robust import/export option in the future.

---

<div class="post-metadata">

**Author:** ![developernotes](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/developernotes/32/1309_2.png) [@developernotes](https://discuss.zetetic.net/u/developernotes)\
**Post date:** [March 26, 2024, 4:08pm UTC](https://discuss.zetetic.net/t/export-field-order/6299/3 "2024-03-26T16:08:56Z")

</div>

Hi @evan2048,

I just wanted to share that the production version of Codebook for Windows was updated yesterday to include field ordering by index for exports.

---

<div class="post-metadata">

**Author:** ![evan2048](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/evan2048/32/1961_2.png) [@evan2048](https://discuss.zetetic.net/u/evan2048)\
**Post date:** [March 26, 2024, 5:42pm UTC](https://discuss.zetetic.net/t/export-field-order/6299/4 "2024-03-26T17:42:01Z")

</div>

Great news. Thank you for the follow-up.
