Migrating from 'Select' to 'Key Text' field type

Hello,

We have a number of documents (100+) which have multiple 'Select' fields inside multiple slices.

We'd now like to migrate these 'Select' types to 'Key Text' fields to allow more flexibility for our content writers. However, if we change the type of these fields (but retain the API ID) the previous field value is not reflected in the Key Text field and is therefore lost when the document is next saved.

How can we change field types and transfer the field values?

Luke

Hey Luke,

This is a really tricky one given that you’re trying to get the selected data of the select field. There’s no way the Prismic will remember this even if you keep the same API ID.

The only solution that I can see here is to use the import/export feature that starts on the medium plan.

You can export the current set up and run a script to get the select data and convert it in to key text fields. Then change your custom types and re-import the new restructured data.

Let me know if you have any further questions about this.

This issue has been closed due to inactivity.