Wix Form Submit Not Triggering Automation

Question:

Why is my Wix Studio form not triggering the automation when submitted using Velo code, even though everything is correctly configured?


Product:

Wix Studio Editor – Velo, Wix Forms, Automations


What am I trying to achieve:

I’ve built a quiz page in Wix Studio where users enter their name and email, take a 30-question quiz, and see their score. I want to:

  1. Save their quiz result (name, email, score, date) to a collection.
  2. Trigger an automation that sends them a confirmation email using Wix Automations.

All quiz logic and field values are handled via Velo code. I’m using a Wix Studio form connected to a collection called QuizResults. When the quiz is complete, I use:

js

$w("#quizForm").setFieldValue("name", name);
$w("#quizForm").setFieldValue("email_07b6", email);
$w("#quizForm").setFieldValue("score", scoreText);
$w("#quizForm").setFieldValue("date_9bac", date);
$w("#quizForm").submit();

The form has:

  • ID: quizForm
  • Collection: QuizResults
  • Fields: name, email_07b6, score, date_9bac
  • Automation: active, triggers when form is submitted, sends email

What have I already tried:

  • Verified form ID and field keys (all 100% correct)
  • Confirmed fields are inside the form container
  • Automation is published and active
  • Tested automation with manual form submission (works)
  • Verified collection permissions (form submissions allowed)
  • Tried hidden and visible fields
  • Tested in multiple browsers
  • No console errors, no activity logged in Automation panel
  • Form does not appear in Inbox or trigger automation

Additional information:

  • I’m using the Wix Studio Editor
  • The form was added using the “Add → Forms” feature
  • Fields inputName and inputEmail are outside the form (for user interaction), but values are passed into the form using .setFieldValue()
  • This has been tested and debugged extensively
  • It’s unclear whether .submit() in Velo is fully supported in Wix Studio forms or integrated with Automations

:folded_hands: I’d appreciate any guidance from Wix engineers or the community on whether this flow is currently supported and what the recommended approach is.

Thanks so much in advance.

Hi, @rashad-qado !!

When the built-in button is clicked manually, does the form get submitted correctly and the automation trigger properly right? I checked the .submit() reference, and the examples there seem to show it being triggered by a custom button click. It makes me wonder if some kind of button action is required for the form to actually submit. I’ve never used .submit() myself, so I’m not entirely sure. :upside_down_face:

But, it’s also possible that it’s designed that way because having a form submit automatically without any user action could be considered a security risk. :innocent: