# Change Perspective Flex Container back ground Image based on tag value

**URL:** <https://forum.inductiveautomation.com/t/change-perspective-flex-container-back-ground-image-based-on-tag-value/65285>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [October 17, 2022, 3:12pm UTC](https://forum.inductiveautomation.com/t/change-perspective-flex-container-back-ground-image-based-on-tag-value/65285 "2022-10-17T15:12:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Neil\_Carty](https://avatars.discourse-cdn.com/v4/letter/n/90ced4/32.png) [@Neil\_Carty](https://forum.inductiveautomation.com/u/Neil_Carty)\
**Post date:** [October 17, 2022, 3:12pm UTC](https://forum.inductiveautomation.com/t/change-perspective-flex-container-back-ground-image-based-on-tag-value/65285/1 "2022-10-17T15:12:53Z")

</div>

Hi all. I am trying to change the background image of a flex container based on a tag value. Any ideas on how to do this. I'm striking out.

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [October 17, 2022, 3:15pm UTC](https://forum.inductiveautomation.com/t/change-perspective-flex-container-back-ground-image-based-on-tag-value/65285/2 "2022-10-17T15:15:48Z")

</div>

Add a binding to the `backgroundImage` property.  
Make it a tag binding, and point that to your tag.  
Add a transform:

- if you have only a handful of possible values, use a map transform
- if you a lot of possible values, use either a script transform to programmatically evaluate the image path, or use a lookup expression to fetch the image path from a dataset.

---

<div class="post-metadata">

**Author:** ![Neil\_Carty](https://avatars.discourse-cdn.com/v4/letter/n/90ced4/32.png) [@Neil\_Carty](https://forum.inductiveautomation.com/u/Neil_Carty)\
**Post date:** [October 17, 2022, 3:24pm UTC](https://forum.inductiveautomation.com/t/change-perspective-flex-container-back-ground-image-based-on-tag-value/65285/3 "2022-10-17T15:24:52Z")

</div>

Thanks, i didn't know you could have a style Output Type. Tansform it is. Thank you agian.
