Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
Adding a field to a specific form
Hello. I am new to Netsuite and Suitescript, so I apologize if this is a basic question.
I am needing to add a new field at runtime to a Case form. From the documentation, in order to do this, I have to use the beforeLoad function. And to use the beforeLoad function, I have to deploy the script and set the "Applies To" to Case in this instance.
I have done that, and the script seems to work. The only problem I am having is that I only want this field added for one particular form. We have multiple Case forms, and I don't want this field on all of the Case forms. Only one of the Case forms. So what I thought I could do is just check the form ID, and only add the new field if the form ID matched the form ID I am looking for.