`/**`  * @NApiVersion 2.1  * @NScriptType ClientSc...
# suitescript
m
/**
 * @NApiVersion 2.1  * @NScriptType ClientScript  * @NModuleScope SameAccount  */  
define(['N/record', 'N/search', 'N/url', 'N/currentRecord'],
 
function (record, search, url, currentRecord) {
     
var exports = {};
    
var record = currentRecord.get();
     
function fieldChanged(scriptContext){
         
console.log('currentField' + scriptContext.fieldId)
     
}
     
exports.fieldChanged = fieldChanged;
     
return exports;
 
});
s
Try changing to 2.0 instead? I believe smoeone posted having a similar issue the other day with 2.1 and fieldChanged
also, why is there a
var record = currentRecord.get()
outside of any entry points, remove that. You should not try to use the netsuite APIs outside of entry points.
m
OMG. Thank you! That works now Yea that was left over from me throwing everything at the wall I could think of