I have been attempting to personalize a field in a form created with the Sonata Admin Bundle. I followed the solution provided in this article: Customize form field rendering. Apart from customizing the form field, I also aimed to implement an autocomplete feature using Ajax to display potential values for the newly created field. Therefore, I inserted the script in the myfield_edit.html.twig file as suggested in the solution. But now, I am encountering an issue where the script does not load when the form page is accessed. Can someone please assist me with this problem? Thank you!