Can you customise the behaviour of a toggle component?

Is it possible to customise the behaviour of a toggle component in the form builder? When I toggle it I want to execute some arbitrary code.
Solution
afterStateUpdated works, but i think you need to make your field live 😜
Was this page helpful?