# Show/hide elements based on array

**URL:** <https://discourse.nodered.org/t/show-hide-elements-based-on-array/32628>\
**Category:** Dashboard\
**Created:** [9 September 2020 08:06 UTC](https://discourse.nodered.org/t/show-hide-elements-based-on-array/32628 "2020-09-09T08:06:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GitHubAndDance](https://avatars.discourse-cdn.com/v4/letter/g/e8c25b/32.png) [@GitHubAndDance](https://discourse.nodered.org/u/GitHubAndDance)\
**Post date:** [9 September 2020 08:06 UTC](https://discourse.nodered.org/t/show-hide-elements-based-on-array/32628/1 "2020-09-09T08:06:31Z")

</div>

Hi,

I need to show some informative pictures based on array values.

I get the array from an SQL database which is used to populate a dropdown. Below I would like pictures of the possible options. So if theres an option to select apple - I would like a picture of an apple displayed below the dropdown.

Eg. if array contains a 1 it should show 1.jpg

Any help would be much appreciated

Kris

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [9 October 2020 08:06 UTC](https://discourse.nodered.org/t/show-hide-elements-based-on-array/32628/2 "2020-10-09T08:06:34Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
