Skip to main content
Question

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

  • June 10, 2023
  • 1 reply
  • 152 views

HHN

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!

Did this topic help you find an answer to your question?
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

Troy Tessalone
Forum|alt.badge.img+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