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.