If you have ever worked in NetSuite Sales Order record, you must have noticed below scenario:
Every time you change amount in ITEM Sublist, you see below popup confirm message, if below condition doesn’t satisfy:
New Amount != Rate * Quantity
This is NetSuite’s standard popup.
What if your client have the requirement to update the amount by their end users as part of their general Sales Order process.
Now let’s see how can we suppress this message, this is a frequent scenario for your client.
Here is the following sample code, that you can use for similar requirement.
You can save this piece if code for your reference, so that if you need to suppress any standard popup in NetSuite, you can use this as reference. You can use this code for any Netsuite warning popup for any field change. Remember, if you want to show certain warning on some field change but suppress for some, make sure you mention the field id in field change event before adding “window.confirm()….”.
You can refer to my previous tip for suppressing NetSuite standard popup on record leave/load.
Here is the link for reference: https://ashabarijena.wordpress.com/2024/02/19/netsuite-tip-46/