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!
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
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
Setting a field value in the beforeLoad event method..
hello,
I have the following test code in my beforeLoad event:
function onBeforeLoad(type)
{
//get the new record and it's parent.
var recNewLecture = nlapiGetNewRecord();
recNewLecture.setFieldValue
(
'custentity_repemail_buffer',
'hello'
);
}
However when the entry form loads 'custentity_repemail_buffer' is empty and no errors are thrown. The 'custentity_repemail_buffer' field is a Free-Form Text entity field. Just for fun I turned off the custom client side scripts for this record's form and it still happens. Any ideas?
0