I am under a custom role. On this custom role, no ...
# suitescript
s
I am under a custom role. On this custom role, no matter what I do, the client script will not run. There are no errors, nothign in the f12 --> console. Has anyone else experienced this issue? In my testing, I have reduced the file to this. * it works in admin role***
Copy code
/**
 * @NApiVersion 2.1
 * @NScriptType ClientScript
 */
define([], function () {
    function pageInit(ctx) {
        debugger;
        alert('hi');
        log.debug('made it');
    }

    return { pageInit };
});
I refuse to delete this message, as to remind myself and inflict pain in the future. 5 hours of wasted time and it was because the script was set to run for admins only
facepalm 1
👏 3
m
I admire your attitude and approach to future knowledge. (Because I've never done the exact. same. thing.)
😂 3
c
Good troubleshooting practice 😉