I've created a custom field which I'm trying to use in the CMS, but I can't get it to render correctly after saving a page.
When it initially loads, I use Requirements::javascript() calls to include my required files. This works, but when the form refreshes after a save, the field loses its styles.
Is there a way I can style the fields (execute my js) after the form refreshes?
I've read the javascript documentation here but i can't seem to find a solution.
Any help would be greatly appreciated.