How to transform vue.js data in a Statamic CP form

63 views Asked by At

I have a Statamic installation v3.3.64.

I need to change a field value dynamically in a form of the Statamic control panel. Specifically, when a toggle is clicked in the same form.

I know I can show/hide a field based on a custom condition defined in resources/js/cp.js, but I cannot find a way to implement a watch event on a specific field to transform the value of another field.

Does anybody have a solution?

0

There are 0 answers