Could anyone please help me on this?
# suitescript
v
Could anyone please help me on this?
l
Is that running on Edit or View Mode?
v
i didnt mention anything.(like if type === 'edit' condition)
b
use the browser's console
your code is throwing errors that you are ignoring
v
@battk yes this is the one i got.
Uncaught TypeError: Cannot read properties of undefined (reading 'currentRecord') at Object.checkIsabelStatus (scriptmodule.nl?_xt=.js&childPath=%2FSuiteScripts%2FDynappco%2Fuserevent%2FCMB_cs_pfa_functions&parentPath=%2FSuiteScripts%2FDynappco%2Fuserevent%2Fue_button_isabel_status.js&assignDefineIfEmpty=T:17:41) at custrecordentry.nl?id=106&rectype=374&whence=&e=T:909:593 at Object.execCb (NsRequire.js204726) at Ma.check (NsRequire.js119328) at Ma.enable (NsRequire.js147510) at Ma.init (NsRequire.js110611) at NsRequire.js177118
Could you please help?
l
I’m not sure I think when it’s a button triggering this script, it won’t receive that parameter “currentRecord”… looks like it’s overwriting the module
try remove that parameter from this function checkIsabelStatus
v
@Luiz Morais yes sir its working now, thank you