I have a script that doesn't appear to trigger a f...
# suitescript
m
I have a script that doesn't appear to trigger a function when I use the Save & Same button on a case. I assumed the Save & Same context would be 'copy', but it's not. Any ideas?
Copy code
context.mode === 'edit' || context.mode === 'view' || context.mode === 'copy'
b
both assumptions are wrong
context.mode is not a parameter
Save & Same just creates a new case with the same customer
m
Thanks for the links. I have a field I need setting based on the customer - I set this field when in edit or view mode, so now I would need to include a 'create' in the context check.