I'm currently injecting custom Javascript onto specific record types via the User Event Scripts -> Before Load Function script.
In this script, I'm adding a field to the form with type 'inlinehtml', and then adding javascript within tags.
Is this the Netsuite preferred method? Seems extremely hacky.
Here's the example I'm working with:
Have the built-in Customer form run a check on session vars and, if a specific var is set, to update the page with info based on that var.
I'm injecting js into the page because I need the URL to load to apply a new URL param or change an existing URL param based on the session var.
Copyright Notice:Content Author:「Pierce G.」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/32211552/netsuite-proper-method-of-javascript-injection