I am trying to create a dialog box as a warning to the user when trying to create an entity record in a custom entity.
I wrote a JS which I tried to trigger onSave of