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
"Invalid Field Value" error for custom field of type integer number
Hello,
I am having an issue where I am trying to set a custom field value of type integer number on new record using the N/record.record's setCurrentSublistValue. This is usually extremely straight forward. The value is initially read as a string so when it is time to set the value, it is of type string. I've tried Number(<value>), String(<value>) and parseInt(<value>) and all of the return the same error of :
"You have entered an Invalid Field Value <value> for the following field: <custom field id>" which for example if it the value i am trying to set is 36, it is trying to set this as 36.0 whether string or number. Has anyone ran into this? This is the ONLY field that is causing this type of issue. I know that for the most part, fields are happy with string values but this one is causing me problems :h_a_w: