Hi All, I have a simple UserEvent script on Custo...
# suitescript
s
Hi All, I have a simple UserEvent script on Customer record, that validates to check the context.type. Im trying to block users when context.type=='create' && context.type== 'copy' . But im still able to perform Customer record, Make Copy. Any idea on how to fix? Note: When i click on "Make Copy" in Customer record, the customer gets Auto Saved. And i don't see the context.type as "copy" (instead just shows "edit" followed by "view").
b
Im not sure what you are describing, but
context.type=='create' && context.type== 'copy'
is equivalent to false