How to check for a deleted record in a template #1242
-
I am not sure if this is the right place for the question I have, please forgive me if it is not. I have an small app which can soft delete a record. It also allows the user to 'show deleted'. In the template, I want to be able to 'disable' features for 'deleted' records. I have tried:
and
but none of these seem to work to indicate whether the record is marked as deleted or not. Can anyone kindly point me in the right direction? Many thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Try |
Beta Was this translation helpful? Give feedback.
Try
{{ if $e.DeletedAt.Valid }}
to check if it has been deleted