Injecting Custom Codes in Netsuite

Posted by: Paul Pampolino Date Posted: January 28, 2026
Back to Case Studies

Issue

The form is inside a NetSuite iframe, so to track it, we’ll need to add a postMessage. The problem is figuring out how to navigate in NetSuite and where we can insert custom codes.

Solution

To set this up in NetSuite, just go to Setup > Other Setup > Online Customer Form > Custom Code. Open the script file in a new window, then go to Media Item and click Edit. Here, you can add any custom code you’d like.

Achievement

Now we can comfortably navigate NetSuite and add custom code when necessary.

Snippet/Screenshot/Link