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.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
Force Updating Grayed-Out Account Record Fields
Scenario: The user wants to update the Sub Account field on an account record, so it rolls up under a different parent account. However, the field is currently grayed out. This change is needed to ensure the account is reflected correctly in the financial statement.
Solution:
- Edit Account 9535 (id: 438)
- Right click then select ‘Inspect’
- On the console, paste this below:
- require(['N/currentRecord'], function(currentRecord) {
var record = currentRecord.get();
record.setValue({
fieldId: 'parent',
value: '163'
});
}); - Save
Actual Result: Subaccount for Account Record is now successfully edited.
Note: Edit fieldID and value as needed
Tagged:
2