I have built a beforeSave hook to detect situation where a user is submitting a new or modified entity without relating it to another entity (many-many). The hook works but using the thrown new Error only provides a brief message that the user is neither expecting nor paying much attention to. I would like to show a popup notification with an OK button to force them to acknowledge their mistake. I've never called a popup from the PHP code and looking for some guidance.
What is the call I make? I assume I pass the message and the need for an OK button?
What about the action to take when the OK button is pressed? In my case I simply want the pop-up to be removed.
Do I need to write custom client side code?
Is there an existing call that does just what I need to do instead of something custom?
Thank you
What is the call I make? I assume I pass the message and the need for an OK button?
What about the action to take when the OK button is pressed? In my case I simply want the pop-up to be removed.
Do I need to write custom client side code?
Is there an existing call that does just what I need to do instead of something custom?
Thank you
Comment