Skip to main content
Question

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

  • June 10, 2023
  • 1 reply
  • 170 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!

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
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • June 10, 2023

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