[SOLVED] Verify if child records exist before deleting |
4/3/2024 3:51:17 PM |
PHPRunner General questions | |
A
asawyer13 authorDevClub member
I have a custom button on my edit page. I want to verify that no records are using the record id of what the user is trying to delete. It almost works. Here's my two issues. On the Server side of the button I have this code global $dal;
Thanks for any help, |
|
![]() |
Sergey Kornilov admin 4/4/2024 |
You cannot output anything in button's Server event. Buttons are executed via AJAX and return JSON to ClientAfter event. Any output you add will break the JSON. If you need to display a message, you need to do this in Javascript event like ClientAfter. |