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
beforeSubmit fields not returning values
I perform a search on a custom record looking for values in two fields (one a list/record field, the other an integer field). The search results find the records correctly.
I do a mass update against this search which causes a User Event script I have on the custom record to run.
In the beforeSubmit routine, I load the record using nlapiGetNewRecord and using getFieldValue retrieve the values for the two fields above. They both return null for a value.
The form has the list/record set as inline text while the integer has the 'show' checkbox unchecked (to hide the field). Am I to assume that beforeSubmit is showing these as null because they are set to inline text and not shown or is there something else going on I am not aware of? Both of these returned values should have had values in them (clearly since the mass update search shows them with values).