# React JS Dropdown, Array Properties to Text fields

**URL:** <https://forums.creativeclouddeveloper.com/t/react-js-dropdown-array-properties-to-text-fields/4147>\
**Category:** Photoshop\
**Created:** [January 14, 2022, 6:47am UTC](https://forums.creativeclouddeveloper.com/t/react-js-dropdown-array-properties-to-text-fields/4147 "2022-01-14T06:47:22Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Karmalakas](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/karmalakas/32/1048_2.png) [@Karmalakas](https://forums.creativeclouddeveloper.com/u/Karmalakas)\
**Post date:** [January 14, 2022, 10:32am UTC](https://forums.creativeclouddeveloper.com/t/react-js-dropdown-array-properties-to-text-fields/4147/4 "2022-01-14T10:32:57Z")

</div>

Ah sorry, not at PC now so can’t test. It should probably be an object:

```auto
    const filetypeOptionsArray = {
        "tiff": { type: "tiff", extension: "TIFF", bitdepth: "16" },
        "psd": { type: "psd", extension: "PSD", bitdepth: "16" },
        "jpg": { type: "jpg", extension: "JPG", bitdepth: "8" },
    }

```

My bad. If there are errors, always check which line produces it and most of the time it’s quite easy to figure out

---

_[View the full topic](https://forums.creativeclouddeveloper.com/t/react-js-dropdown-array-properties-to-text-fields/4147)._
