RE: Cannot add Client Script 2.1 to a Transaction Form

I am unable to wrap my head around why this won’t work. We are currently using a V2.0 client script to capture signatures on our invoices. An update to Chrome broke that function a while ago and was fixed before I finished an updated version. Now that it is finished and working flawlessly from a User Event Script button, I am trying to replace the script file under Custom Code and I keep getting the error message “SuiteScript version 2 file used for form scripts must implement client script type”. This obviously is already a Client Script. I have even tried removing the existing script, saving, and then edit and adding the new one, and I still get the error message.

shanelynn321 Rookie Asked on September 19, 2024 in SuiteScript.
Add Comment
4 Answers

This is the error I am getting whenever I try to change the script from the old 2.0 script to the new 2.1 script. As originally stated, I have tried removing the script file, saving, editing, and selecting the new one.

RE: Cannot add Client Script 2.1 to a Transaction Form

And this is the error I get if I simply change the version from 2.1 to 2.0 in the editor.

RE: Cannot add Client Script 2.1 to a Transaction Form

From what I have learned from other scripts we use, this error is common with ES6 style code.

Rookie Answered on September 20, 2024.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.