onWixFormSubmit is not a function error

I write my “onWixFormSubmit” function inside the “$w.onReady” but in frontend I am getting a type error that “onWixFormSubmit is not a function”. How to fix that?


Where did you get it from → onWixFormSubmit <— ???

From this page I get that code but it’s not working.

Hello! I answered you in Discord but in case you did not see it and for anyone else passing through here…

This is a known issue affecting Studio forms only. Forms have been updated for Wix Studio and there are new API’s coming soon that will remedy your issue. In the meantime, there is a workaround:

  1. Remove the form you are currently using
  2. Start with the “Order Form” template
  3. Adjust to your use case
  4. Use the wixForms API’s as expected.
1 Like