Hi all, I'm trying to prevent deleting invoices fo...
# suitescript
g
Hi all, I'm trying to prevent deleting invoices for specific roles when a specific field on the invoice has any value other than empty. How do you stop the save? I've tried beforeSubmit but it doesn't see the field value when the execution context is delete, and I've tried validateDelete but that turns out to only be for sublist lines, not records. Any ideas?
c
@GMR Admin Can you explain more about "it doesn't see the field value when the execution context is delete"? Is this only happening through the UI?
g
I was using newRecord
👍 1
My mistake