Just curious if anyone have experienced attaching ...
# suitescript
w
Just curious if anyone have experienced attaching a client-side script 2.x or 2.1 on a Suitelet using clientScriptModulePath where the there is fieldChanged entry point, and then when the fieldChanged is triggered it is passing 3 arguments (sublistId, fieldId, line) instead of a context object that has those properties? I am getting this behavior right now.. is this a defect?
s
yes, I believe this was mentioned recently, though I thought it only applied to 2.1 scripts?
it was as if the client script was being invoked as if it was SS1.0
I'd recommend searching this slack as it was recent enough to probably be still resident in the chat history?
w
Yeah, I converted it back to 2.x and had the same result they were pass as arguments. Yes, you are correct - it's like it's invoking as SS1.0, really strange.
Ok, thanks @stalbert! appreaciate the quick response and confirming my sanity ahah
a
Client Scripts 2.1 that do not require a deployment are not behaving correctly at the moment, too many random shenanigans or behaviors, I would recommend to stick with 2.0 for any Client Script that does not requiere a deployment.
👍 2
s
the ironic thing about this is Browsers have been a natively 2.1 compatible environment for many years now 🙂