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.
Check Custom field to flag an invoice
Hi,
Heres the scenario:
I created a custom field on the customer main screen called 'custentity43', Labeled: "Consignment" - it is a check box (yes,no).
I would like a pop up to appear when a user creates an "Invoice" that says:
"Hey this is a consignment account"
So I created a "Before Load Function" as follows:
function ConsignCheck_BeforeLoad() { x = nlapiGetFieldValue('custentity43'); if (x == "T") { alert("this is a consignment account"); } } I don't get an alert... something tells me I have to load the customer record first, how?
2. If I don't load the customer record first, does the current invoice knows to go to 'custentity43' of this customer?
0