We can use these two methods in sales record. First we need to create script then add the below mentioned code in the script.
define([‘N/error’], function(error) {
function pageInit(context) {
console.log(‘init’)
});
}
function fieldChanged(context) {
console.log(‘file changed’)
});
}
return{
pageInit: pageInit,
fieldChanged: fieldChanged,}
})
We can use these two methods with any record. First, we need to create a script, and then add the below-mentioned code to the script that