Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
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.