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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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