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

Hi there

Without seeing any of the code it’s bit hard to troubleshoot.  First and foremost, are you defining the script type at the beginning of your script?

/**
 * @NApiVersion 2.1
 * @NScriptType ClientScript
 * @NModuleScope SameAccount
 */
 

 

 

 

Rookie Answered on September 19, 2024.
Add Comment

Your Answer

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