Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Default value of a Custom Transaction Body Field
How to set a default value of a custom Transaction body field?
Problem No 1:
I have added a transaction body field to the recordtype creditmemo.
The fieds is of type Percent.
The value is Stored and only applied to forms of type creditmemo.
Default value is 100%
When pressing the "Credit" button on an invoice(creating a creditmemo), the field is displayed nicely,but there is no default value. Creating manually a creditmemo will display the value correctly.
Problem No 2:
Adding a Userevent script to creditmemo and implementing a beforeLoad function do not solve the problem because nlapisetFieldValue is not able to set the value of the body field.
0