Discussions
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?