Search code examples
netsuitesuitescript

Alert in view record for Netsuite


I have been trying to get a alert in Netsuite for view mode but can't get it for customer record.

Though when I tried to get the alert for the edit record then I got it but I want it for view.

I tried client script, user event script and also workflow. But all support only for edit. Can I get the alert by any means for the view record option.

Thanks Gladiator


Solution

  • One workaround that I've done is to add a custom field of type 'Inline HTML' to the customer form. Then during the beforeLoad event you can check if type == 'view' and update the custom field's value with the HTML that is needed to display the alert.