Question

Failed to run your JavaScript code - ReferenceError: $ is not defined

  • 10 June 2023
  • 1 reply
  • 90 views

Hello,

 

I’m trying to use the JavaScript action to run the below code (sample) to send an SMS via SMTP2GO. 

 

 

I keep getting this error when testing the code. 

Failed to run your JavaScript code - ReferenceError: $ is not defined

 

 

What changes do I need to make to support Zapier’s format?

 

Thanks for your time!


This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

1 reply

Userlevel 7
Badge +14

Hi @HHN 

Good question.

Try asking ChatGPT to debug and optimize your javascript: https://chat.openai.com/

Code help articles: https://zapier.com/apps/code/help