# Convert container type

**URL:** <https://forum.inductiveautomation.com/t/convert-container-type/27409>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [August 13, 2019, 6:16pm UTC](https://forum.inductiveautomation.com/t/convert-container-type/27409 "2019-08-13T18:16:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ankitkarwa21](https://avatars.discourse-cdn.com/v4/letter/a/48db29/32.png) [@ankitkarwa21](https://forum.inductiveautomation.com/u/ankitkarwa21)\
**Post date:** [August 13, 2019, 6:16pm UTC](https://forum.inductiveautomation.com/t/convert-container-type/27409/1 "2019-08-13T18:16:09Z")

</div>

Would it be possible to convert container types in perspective?  
I keep finding myself having to rebuild screens because of using wrong container types or sometimes even the project requirement changes and the container I selected doesn’t fit the new requirements.  
Not sure if this would be possible, but it would be really handy if it is.

---

<div class="post-metadata">

**Author:** ![osolorzano](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/osolorzano/32/6432_2.png) [@osolorzano](https://forum.inductiveautomation.com/u/osolorzano)\
**Post date:** [August 13, 2019, 6:36pm UTC](https://forum.inductiveautomation.com/t/convert-container-type/27409/2 "2019-08-13T18:36:52Z")

</div>

If you shift+right-click a view and select “Copy JSON” you can paste that into a text editor, then change the `root` object “type” property. From there you can copy the new edited JSON and shift+right-click the view again and select “Paste JSON” and then it should update.  
Keep in mind when you do this, all the components within the view will not update their Position properties to look anything like it did before the root was converted. They will get some defaults that may not make a whole lot of sense and will require you manually edit them.

---

<div class="post-metadata">

**Author:** ![ankitkarwa21](https://avatars.discourse-cdn.com/v4/letter/a/48db29/32.png) [@ankitkarwa21](https://forum.inductiveautomation.com/u/ankitkarwa21)\
**Post date:** [August 13, 2019, 6:51pm UTC](https://forum.inductiveautomation.com/t/convert-container-type/27409/3 "2019-08-13T18:51:35Z")

</div>

Awesome!!  
I had suspected that all components wont update because of a different container type.  
But this should work for me.

---

<div class="post-metadata">

**Author:** ![bao.nguyen](https://avatars.discourse-cdn.com/v4/letter/b/8c91f0/32.png) [@bao.nguyen](https://forum.inductiveautomation.com/u/bao.nguyen)\
**Post date:** [March 29, 2022, 5:03am UTC](https://forum.inductiveautomation.com/t/convert-container-type/27409/4 "2022-03-29T05:03:42Z")

</div>

Thank you for your answer.  
This works great for me.

---

<div class="post-metadata">

**Author:** ![Simen\_Minerd](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@Simen\_Minerd](https://forum.inductiveautomation.com/u/Simen_Minerd)\
**Post date:** [October 24, 2023, 1:54pm UTC](https://forum.inductiveautomation.com/t/convert-container-type/27409/5 "2023-10-24T13:54:40Z")

</div>

When I converted a Flex Container to Coord Container, all objects became very small. If could only select them at Project Browser.  
The new Coord Container is default to fixed mode, I couldn't find settings in JSON to change it.  
Anybody knows any trick to do the conversion without change the sized of objects inside the container?
