How can i update the content of a specific form field inside an admin interface from Sonata Admin based on another form field ?
An example : i have an entity Contract ManyToOne Client, Users ManyToOne Client, Users ManyToOne Product. When i choose a Contract in form (select input) i want my product select updated with only related products. I know how to create a custom query but not how to bind it via ajax.
I could do it without any problem outside sonata admin but don't know how inside it.
Thanks!