I wrote the following script for the Time Entry form. Basically, we use the item description field as a memo field to describe the activity. If the item is changed, whatever was in the memo (description) field gets replaced with the new description, which is blank for all service items. In order to save the existing memo, the code copies it to a variable, then replaces what is now in the memo field (null) with what was in the field before the item was changed.
I just realized that this script works fine in IE and Firefox, but does not work in Chrome. Any ideas?
Thanks
function FieldChanged(type, name)
{
if (name == "item")
{
var newID = nlapiGetRecordId();
var CurrentMemo = nlapiGetFieldValue('memo');
if (CurrentMemo != '')
{
var CurrentMemo = nlapiGetFieldValue('memo');
nlapiSetFieldValue('memo',CurrentMemo,false,true);
alert("Your memo: " +nlapiGetFieldValue('memo',CurrentMemo)+" will be saved.");
}
}
}