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.
New to NetSuite | N/currentRecord: CurrentRecord.cancelLine(options) Method
In our previous article, New to NetSuite | N/currentRecord Module Overview, we discussed the purpose and usage of the N/currentRecord module.
As part of our ongoing guide to the N/currentRecord module, this article explores the cancelLine method — a helpful tool for managing sublists during client-side scripting. This method allows you to cancel or discard changes made to the currently selected line in a sublist.
What is cancelLine()?
The cancelLine(options) method cancels the currently selected line on a sublist. This is especially useful if you need to discard an in-progress line item before it's committed.
Returns
- Type: currentRecord.CurrentRecord
Refer a Member to the Community | Earn the Answer Accepter Badge | Vote for the contents you'd like to see
