# Button style classes binding doesnt work on custom property

**URL:** <https://forum.inductiveautomation.com/t/button-style-classes-binding-doesnt-work-on-custom-property/42486>\
**Category:** Ignition\
**Tags:** perspective, scripting, ignition80\
**Created:** [January 21, 2021, 4:53pm UTC](https://forum.inductiveautomation.com/t/button-style-classes-binding-doesnt-work-on-custom-property/42486 "2021-01-21T16:53:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhullett](https://avatars.discourse-cdn.com/v4/letter/d/f6c823/32.png) [@dhullett](https://forum.inductiveautomation.com/u/dhullett)\
**Post date:** [January 21, 2021, 4:53pm UTC](https://forum.inductiveautomation.com/t/button-style-classes-binding-doesnt-work-on-custom-property/42486/1 "2021-01-21T16:53:51Z")

</div>

I am trying to change the style of a button based on a custom property that i defined on my page. The custom property is a sting, and i bound the button.props.style.classes to this custom property but when the property is set at runtime, the style doesnt change. It only changes is i change the custom property and save the project.

On the other hand I setup this same scenario but instead of binding to the custom property I used a tag binding to the style classes and it works as expected? Is there some reason that custom properties on a page aren’t updated at runtime?

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/4/a4c97852ac8586d14e8a6cc6091106a5f5f369d0.png)

this is in a custom message handler script that is called to set the property.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/7/175ff6928ea7ad8e51c7d4c2e6006b9d40c89425.png)
