Perform check before record delete

Ask your questions here.
Post Reply
NoPro70
Posts: 2
Joined: 19 Apr 2023, 12:46
Name: Jeroen Koolen
Location: Helmond, The Netherlands

Perform check before record delete

Post by NoPro70 »

Hi,

I would like to check the value of a specific field when a record is deleted.
If this field has a specific value deleting the record is not allowed.

I could create an automation with a PHP script for this purpose but this would still allow users to delete the record using the
default delete button in the list view.

Is it possible to fire an automation on every delete in a specific Entity List and cancel the delete if a specific condition is not met?
enishemed
Posts: 651
Joined: 30 Oct 2017, 11:24
Name: Enis Hemedoglu
Location: Istanbul, Turkey
Company Name: SCORE DANISMANLIK
Contact:

Re: Perform check before record delete

Post by enishemed »

I think you can set this with "Access Rules".

Aplication Structure > Entities List > Select An Entity > Access > Access Rules


NoPro70 wrote: 07 Feb 2024, 18:52 Hi,

I would like to check the value of a specific field when a record is deleted.
If this field has a specific value deleting the record is not allowed.

I could create an automation with a PHP script for this purpose but this would still allow users to delete the record using the
default delete button in the list view.

Is it possible to fire an automation on every delete in a specific Entity List and cancel the delete if a specific condition is not met?
NoPro70
Posts: 2
Joined: 19 Apr 2023, 12:46
Name: Jeroen Koolen
Location: Helmond, The Netherlands

Re: Perform check before record delete

Post by NoPro70 »

Perfect, problem solved.

Thanks for pointing me in the right direction!
Post Reply