# Styling field focus state

**URL:** <https://community.weweb.io/t/styling-field-focus-state/958>\
**Category:** How do I?\
**Created:** [August 9, 2022, 6:10pm UTC](https://community.weweb.io/t/styling-field-focus-state/958 "2022-08-09T18:10:19Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![dorilama](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/dorilama/32/10403_2.png) [@dorilama](https://community.weweb.io/u/dorilama)\
**Post date:** [January 30, 2023, 6:11pm UTC](https://community.weweb.io/t/styling-field-focus-state/958/8 "2023-01-30T18:11:29Z")

</div>

My understanding is that the state is managed internally by weweb and is not automatically switched when you focus the input, like what happens for hover state.

For a “onfocus” workflow trigger to manage focus events you need to ask the weweb team.

If you use the [workaround that I describe here](https://community.weweb.io/t/best-place-for-onfocus-and-onblur-events/1625/2) you can activate your element state by binding the state condition.  
In that example you keep track of the focused element updating a variable with the name of the element (the one in the settings panel), so you can bind the focus condition to that.  
Something like this:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/4/4b64290886ff09f604b1b89625aea0351c96f41b.png)

---

_[View the full topic](https://community.weweb.io/t/styling-field-focus-state/958)._
