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
Make Contact Mandatory on Opportunity Records
It does not appear this can be achieved through SuiteBuilder and I know workflows won't work at the line level, so I am hoping there is a script to make this happen. Any suggestions? This is what I currently have, but I am not getting the desired result.
function saveRecord()
{
// Check to see that contact is populated. If not, block the save and warn with a popup.
if (String(nlapiGetFieldValue('contact')).length == 0)
{
alert("Please provide a value for contact");
return false;
}
{
alert("Are you sure you want to Save the record?");
return true;
}
}
0