# Making an alarm border in perspective

**URL:** <https://forum.inductiveautomation.com/t/making-an-alarm-border-in-perspective/73513>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [May 10, 2023, 8:27am UTC](https://forum.inductiveautomation.com/t/making-an-alarm-border-in-perspective/73513 "2023-05-10T08:27:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lukas\_De\_Cleen](https://avatars.discourse-cdn.com/v4/letter/l/46a35a/32.png) [@Lukas\_De\_Cleen](https://forum.inductiveautomation.com/u/Lukas_De_Cleen)\
**Post date:** [May 10, 2023, 8:27am UTC](https://forum.inductiveautomation.com/t/making-an-alarm-border-in-perspective/73513/1 "2023-05-10T08:27:59Z")

</div>

Hey, i am trying to make an alarm border in perspective, but i want it to change color depending on different tags. Also i like it to blink when the alarm isn't acknoledged. Has anybody an idea or example on how to do it?

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [May 10, 2023, 8:33am UTC](https://forum.inductiveautomation.com/t/making-an-alarm-border-in-perspective/73513/2 "2023-05-10T08:33:46Z")

</div>

> [@Lukas\_De\_Cleen](#):
>
> but i want it to change color depending on different tags. Also i like it to blink when the alarm isn't acknoledged

Do you have multiple alarm tags? Or are you saying you have a single alarm tag and another collection of tags to change the colour?

---

<div class="post-metadata">

**Author:** ![Lukas\_De\_Cleen](https://avatars.discourse-cdn.com/v4/letter/l/46a35a/32.png) [@Lukas\_De\_Cleen](https://forum.inductiveautomation.com/u/Lukas_De_Cleen)\
**Post date:** [May 10, 2023, 11:32am UTC](https://forum.inductiveautomation.com/t/making-an-alarm-border-in-perspective/73513/3 "2023-05-10T11:32:29Z")

</div>

I have multiple tags. when they change of value the color of the border needs to change too.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [May 10, 2023, 11:39am UTC](https://forum.inductiveautomation.com/t/making-an-alarm-border-in-perspective/73513/4 "2023-05-10T11:39:45Z")

</div>

You just need to bind each tag to a custom property on one of your components/view, then use an expression binding on another custom prop which combines all of the other custom prop values together, e.g.:

```auto
({view.custom.tag1} + {view.custom.tag2} + {view.custom.tag3}) > 0

```

Then, if you're using Perspective Styles (recommended), use a property binding to pick the prop above which combines the tags, and a Map transform. Add a row for value `true` and then set the Output Value type to Style Class and select your style classes for `true` and for Fallback (`false`)

The style classes should set the borders up how you want them.
