Need to create a client script, but the limit (10)...
# suitescript
f
Need to create a client script, but the limit (10) is already reached by bundles. Is there a way around this limitation? I’ve tried to load the client script by a beforeLoad, but functions such as fieldChanged isn’t working. Instead this approach will require DOM manipulation which I think we should try to avoid
w
you need to include it on an existing client script, review the existing CS scripts and assess where it make sense to include your new routine, then create a module that can call your module function (at the entry point). This might be a good time for you to review the existing client scripts and combine logic them together if possible and if your company will give you a permission to do so.. if you have sandbox, do it there first. good luck!
f
The limit is reached by bundles. I’m not in control of any of those scripts. What I believe you’re referring to is creating a hook, that imports each client script into a single entry point. This can’t be done in this case
e
All 10 slots are already taken by Bundles? Yikes.
w
I hate that sone of these bundles take up more than they need.. 🤷🏻‍♂️
r
Ask the team of one of the non popular bundles for which you are paying to enhance the script specifically for your account to include whatever logic you want. It has its own cons though. Also maybe take a step back and think do you really need all those bundles or is there anything which is obsolete.