hi,
i wish to send an email alert only when there is a duplicate record added.
In Email_Sending server event, how to detect that php case ?
My idea was to detect the current_page_id and the presence of table id in the url (because when you hit duplicate button, there is the id record in the url parameter) but it did not work.
$duplicate_case=(CurrentPageID()=="add" && isset($_GET['mytable_id']));
if ($duplicate_case)
die ("ok to send email because duplicate case");
else
die ("you are not in a duplicate case");
The problem is the $_GET
variable is not exist anymore in Email_Sending server, so i'm out of idea ....
do you have another solution ?
Best regards