Form not submitting when pressing on submit button


Hi,
So I have been at this for 6 hrs now. I made this contact form. I have made plenty before. They all work. All I want is to receive the form by email. I have been doing so for 6 months now with no problem. But now I did a form but with some code this time. when I press Submit. Nothing happens.

Here is the site : https://www.alphaveterans.ca/home
It’s live, but in french. just click any button on the site and its the same lightbox with the same form. click on the arrows for the form to appear.

Here’s a picture to show the settings for the submit button. I have tried exact samething on a new form it works. But when I enter the code for the form. Button stop working.

Here his the code ( NOTHING related to submit button)
export function Button1_click(event) {
if ($w(‘#wixForms1’).collapsed) {
$w(‘#wixForms1’).expand();
}
if ($w(‘#social’).collapsed) {
$w(‘#social’).expand();
}
if ($w(‘#therapeute’).expand) {
$w(‘#therapeute’).collapse();
}
if ($w(‘#pairaidant’).expand) {
$w(‘#pairaidant’).collapse();
}
if ($w(‘#harley’).expand) {
$w(‘#harley’).collapse();
}
if ($w(‘#textcover’).expand) {
$w(‘#textcover’).collapse();
}
if ($w(‘#infolettre’).expand) {
$w(‘#infolettre’).collapse();
}
if ($w(‘#hrd2kill’).expand) {
$w(‘#hrd2kill’).collapse();
}
if ($w(‘#repos’).expand) {
$w(‘#repos’).collapse();
}
if ($w(‘#salon’).expand) {
$w(‘#salon’).collapse();
}
if ($w(‘#dress’).expand) {
$w(‘#dress’).collapse();
}
if ($w(‘#textsocial’).collapsed) {
$w(‘#textsocial’).expand();
}
if ($w(‘#checkboxGroup2’).collapse) {
$w(‘#checkboxGroup2’).expand();
}
if ($w(‘#checkboxGroup3’).expand) {
$w(‘#checkboxGroup3’).collapse();
}
if ($w(‘#texttherapeute’).expand) {
$w(‘#texttherapeute’).collapse();
}
if ($w(‘#grostext’).expand) {
$w(‘#grostext’).collapse();
}
if ($w(‘#checkboxGroup4’).expand) {
$w(‘#checkboxGroup4’).collapse();
}
if ($w(‘#checkboxGroup5’).expand) {
$w(‘#checkboxGroup5’).collapse();
}
if ($w(‘#textsalon’).expand) {
$w(‘#textsalon’).collapse();
}
if ($w(‘#checkboxGroup1’).expand) {
$w(‘#checkboxGroup1’).collapse();
}
if ($w(‘#textdress’).expand) {
$w(‘#textdress’).collapse();
}
}
export function Button2_click(event) {
if ($w(‘#wixForms1’).collapsed) {
$w(‘#wixForms1’).expand();
}
if ($w(‘#social’).expand) {
$w(‘#social’).collapse();
}
if ($w(‘#therapeute’).collapsed) {
$w(‘#therapeute’).expand();
}
if ($w(‘#pairaidant’).expand) {
$w(‘#pairaidant’).collapse();
}
if ($w(‘#harley’).expand) {
$w(‘#harley’).collapse();
}
if ($w(‘#textcover’).expand) {
$w(‘#textcover’).collapse();
}
if ($w(‘#infolettre’).expand) {
$w(‘#infolettre’).collapse();
}
if ($w(‘#hrd2kill’).expand) {
$w(‘#hrd2kill’).collapse();
}
if ($w(‘#repos’).expand) {
$w(‘#repos’).collapse();
}
if ($w(‘#salon’).expand) {
$w(‘#salon’).collapse();
}
if ($w(‘#dress’).expand) {
$w(‘#dress’).collapse();
}
if ($w(‘#textsocial’).expand) {
$w(‘#textsocial’).collapse();
}
if ($w(‘#checkboxGroup2’).expand) {
$w(‘#checkboxGroup2’).collapse();
}
if ($w(‘#checkboxGroup3’).collapsed) {
$w(‘#checkboxGroup3’).expand();
}
if ($w(‘#texttherapeute’).collapsed) {
$w(‘#texttherapeute’).expand();
}
if ($w(‘#grostext’).expand) {
$w(‘#grostext’).collapse();
}
if ($w(‘#checkboxGroup4’).expand) {
$w(‘#checkboxGroup4’).collapse();
}
if ($w(‘#checkboxGroup5’).expand) {
$w(‘#checkboxGroup5’).collapse();
}
if ($w(‘#textsalon’).expand) {
$w(‘#textsalon’).collapse();
}
if ($w(‘#checkboxGroup1’).expand) {
$w(‘#checkboxGroup1’).collapse();
}
if ($w(‘#textdress’).expand) {
$w(‘#textdress’).collapse();
}
}
export function Button3_click(event) {
if ($w(‘#wixForms1’).collapsed) {
$w(‘#wixForms1’).expand();
}
if ($w(‘#pairaidant’).collapsed) {
$w(‘#pairaidant’).expand();
}
if ($w(‘#therapeute’).expand) {
$w(‘#therapeute’).collapse();
}
if ($w(‘#social’).expand) {
$w(‘#social’).collapse();
}
if ($w(‘#harley’).expand) {
$w(‘#harley’).collapse();
}
if ($w(‘#textcover’).expand) {
$w(‘#textcover’).collapse();
}
if ($w(‘#infolettre’).expand) {
$w(‘#infolettre’).collapse();
}
if ($w(‘#hrd2kill’).expand) {
$w(‘#hrd2kill’).collapse();
}
if ($w(‘#repos’).expand) {
$w(‘#repos’).collapse();
}
if ($w(‘#salon’).expand) {
$w(‘#salon’).collapse();
}
if ($w(‘#dress’).expand) {
$w(‘#dress’).collapse();
}
if ($w(‘#textsocial’).collapsed) {
$w(‘#textsocial’).expand();
}
if ($w(‘#checkboxGroup2’).expand) {
$w(‘#checkboxGroup2’).collapse();
}
if ($w(‘#checkboxGroup3’).expand) {
$w(‘#checkboxGroup3’).collapse();
}
if ($w(‘#texttherapeute’).expand) {
$w(‘#texttherapeute’).collapse();
}
if ($w(‘#grostext’).collapsed) {
$w(‘#grostext’).expand();
}
if ($w(‘#checkboxGroup4’).expand) {
$w(‘#checkboxGroup4’).collapse();
}
if ($w(‘#checkboxGroup5’).expand) {
$w(‘#checkboxGroup5’).collapse();
}
if ($w(‘#textsalon’).expand) {
$w(‘#textsalon’).collapse();
}
if ($w(‘#checkboxGroup1’).expand) {
$w(‘#checkboxGroup1’).collapse();
}
if ($w(‘#textdress’).expand) {
$w(‘#textdress’).collapse();
}
}
export function Button4_click(event) {
if ($w(‘#wixForms1’).collapsed) {
$w(‘#wixForms1’).expand();
}
if ($w(‘#social’).expand) {
$w(‘#social’).collapse();
}
if ($w(‘#therapeute’).expand) {
$w(‘#therapeute’).collapse();
}
if ($w(‘#pairaidant’).expand) {
$w(‘#pairaidant’).collapse();
}
if ($w(‘#textcover’).collapsed) {
$w(‘#textcover’).expand();
}
if ($w(‘#harley’).expand) {
$w(‘#harley’).collapse();
}
if ($w(‘#infolettre’).expand) {
$w(‘#infolettre’).collapse();
}
if ($w(‘#hrd2kill’).expand) {
$w(‘#hrd2kill’).collapse();
}
if ($w(‘#repos’).expand) {
$w(‘#repos’).collapse();
}
if ($w(‘#salon’).expand) {
$w(‘#salon’).collapse();
}
if ($w(‘#dress’).expand) {
$w(‘#dress’).collapse();
}
if ($w(‘#textsocial’).expand) {
$w(‘#textsocial’).collapse();
}
if ($w(‘#checkboxGroup2’).expand) {
$w(‘#checkboxGroup2’).collapse();
}
if ($w(‘#checkboxGroup3’).expand) {
$w(‘#checkboxGroup3’).collapse();
}
if ($w(‘#texttherapeute’).expand) {
$w(‘#texttherapeute’).collapse();
}
if ($w(‘#grostext’).collapsed) {
$w(‘#grostext’).expand();
}
if ($w(‘#checkboxGroup4’).expand) {
$w(‘#checkboxGroup4’).collapse();
}
if ($w(‘#checkboxGroup5’).expand) {
$w(‘#checkboxGroup5’).collapse();
}
if ($w(‘#textsalon’).expand) {
$w(‘#textsalon’).collapse();
}
if ($w(‘#checkboxGroup1’).expand) {
$w(‘#checkboxGroup1’).collapse();
}
if ($w(‘#textdress’).expand) {
$w(‘#textdress’).collapse();
}
}
export function Button5_click(event) {
if ($w(‘#wixForms1’).collapsed) {
$w(‘#wixForms1’).expand();
}
if ($w(‘#social’).expand) {
$w(‘#social’).collapse();
}
if ($w(‘#therapeute’).expand) {
$w(‘#therapeute’).collapse();
}
if ($w(‘#pairaidant’).expand) {
$w(‘#pairaidant’).collapse();
}
if ($w(‘#harley’).collapsed) {
$w(‘#harley’).expand();
}
if ($w(‘#textcover’).expand) {
$w(‘#textcover’).collapse();
}
if ($w(‘#infolettre’).expand) {
$w(‘#infolettre’).collapse();
}
if ($w(‘#hrd2kill’).expand) {
$w(‘#hrd2kill’).collapse();
}
if ($w(‘#repos’).expand) {
$w(‘#repos’).collapse();
}
if ($w(‘#salon’).expand) {
$w(‘#salon’).collapse();
}
if ($w(‘#dress’).expand) {
$w(‘#dress’).collapse();
}
if ($w(‘#textsocial’).collapsed) {
$w(‘#textsocial’).expand();
}
if ($w(‘#checkboxGroup2’).expand) {
$w(‘#checkboxGroup2’).collapse();
}
if ($w(‘#checkboxGroup3’).expand) {
$w(‘#checkboxGroup3’).collapse();
}
if ($w(‘#texttherapeute’).expand) {
$w(‘#texttherapeute’).collapse();
}
if ($w(‘#grostext’).expand) {
$w(‘#grostext’).collapse();
}
if ($w(‘#checkboxGroup4’).collapsed) {
$w(‘#checkboxGroup4’).expand();
}
if ($w(‘#checkboxGroup5’).expand) {
$w(‘#checkboxGroup5’).collapse();
}
if ($w(‘#textsalon’).expand) {
$w(‘#textsalon’).collapse();
}
if ($w(‘#checkboxGroup1’).expand) {
$w(‘#checkboxGroup1’).collapse();
}
if ($w(‘#textdress’).expand) {
$w(‘#textdress’).collapse();
}
}
export function Button6_click(event) {
if ($w(‘#wixForms1’).collapsed) {
$w(‘#wixForms1’).expand();
}
if ($w(‘#social’).expand) {
$w(‘#social’).collapse();
}
if ($w(‘#therapeute’).expand) {
$w(‘#therapeute’).collapse();
}
if ($w(‘#pairaidant’).expand) {
$w(‘#pairaidant’).collapse();
}
if ($w(‘#harley’).expand) {
$w(‘#harley’).collapse();
}
if ($w(‘#textcover’).expand) {
$w(‘#textcover’).collapse();
}
if ($w(‘#infolettre’).collapsed) {
$w(‘#infolettre’).expand();
}
if ($w(‘#hrd2kill’).expand) {
$w(‘#hrd2kill’).collapse();
}
if ($w(‘#repos’).expand) {
$w(‘#repos’).collapse();
}
if ($w(‘#salon’).expand) {
$w(‘#salon’).collapse();
}
if ($w(‘#dress’).expand) {
$w(‘#dress’).collapse();
}
if ($w(‘#textsocial’).collapsed) {
$w(‘#textsocial’).expand();
}
if ($w(‘#checkboxGroup2’).expand) {
$w(‘#checkboxGroup2’).collapse();
}
if ($w(‘#checkboxGroup3’).expand) {
$w(‘#checkboxGroup3’).collapse();
}
if ($w(‘#texttherapeute’).expand) {
$w(‘#texttherapeute’).collapse();
}
if ($w(‘#grostext’).expand) {
$w(‘#grostext’).collapse();
}
if ($w(‘#checkboxGroup4’).expand) {
$w(‘#checkboxGroup4’).collapse();
}
if ($w(‘#checkboxGroup5’).expand) {
$w(‘#checkboxGroup5’).collapse();
}
if ($w(‘#textsalon’).expand) {
$w(‘#textsalon’).collapse();
}
if ($w(‘#checkboxGroup1’).expand) {
$w(‘#checkboxGroup1’).collapse();
}
if ($w(‘#textdress’).expand) {
$w(‘#textdress’).collapse();
}
}
export function Button7_click(event) {
if ($w(‘#wixForms1’).collapsed) {
$w(‘#wixForms1’).expand();
}
if ($w(‘#social’).expand) {
$w(‘#social’).collapse();
}
if ($w(‘#therapeute’).expand) {
$w(‘#therapeute’).collapse();
}
if ($w(‘#pairaidant’).expand) {
$w(‘#pairaidant’).collapse();
}
if ($w(‘#harley’).expand) {
$w(‘#harley’).collapse();
}
if ($w(‘#textcover’).expand) {
$w(‘#textcover’).collapse();
}
if ($w(‘#infolettre’).expand) {
$w(‘#infolettre’).collapse();
}
if ($w(‘#hrd2kill’).collapsed) {
$w(‘#hrd2kill’).expand();
}
if ($w(‘#repos’).expand) {
$w(‘#repos’).collapse();
}
if ($w(‘#salon’).expand) {
$w(‘#salon’).collapse();
}
if ($w(‘#dress’).expand) {
$w(‘#dress’).collapse();
}
if ($w(‘#textsocial’).collapsed) {
$w(‘#textsocial’).expand();
}
if ($w(‘#checkboxGroup2’).expand) {
$w(‘#checkboxGroup2’).collapse();
}
if ($w(‘#checkboxGroup3’).expand) {
$w(‘#checkboxGroup3’).collapse();
}
if ($w(‘#texttherapeute’).expand) {
$w(‘#texttherapeute’).collapse();
}
if ($w(‘#grostext’).expand) {
$w(‘#grostext’).collapse();
}
if ($w(‘#checkboxGroup4’).expand) {
$w(‘#checkboxGroup4’).collapse();
}
if ($w(‘#checkboxGroup5’).collapsed) {
$w(‘#checkboxGroup5’).expand();
}
if ($w(‘#textsalon’).expand) {
$w(‘#textsalon’).collapse();
}
if ($w(‘#checkboxGroup1’).expand) {
$w(‘#checkboxGroup1’).collapse();
}
if ($w(‘#textdress’).expand) {
$w(‘#textdress’).collapse();
}
}
export function Button8_click(event) {
if ($w(‘#wixForms1’).collapsed) {
$w(‘#wixForms1’).expand();
}
if ($w(‘#social’).expand) {
$w(‘#social’).collapse();
}
if ($w(‘#therapeute’).expand) {
$w(‘#therapeute’).collapse();
}
if ($w(‘#pairaidant’).expand) {
$w(‘#pairaidant’).collapse();
}
if ($w(‘#harley’).expand) {
$w(‘#harley’).collapse();
}
if ($w(‘#textcover’).expand) {
$w(‘#textcover’).collapse();
}
if ($w(‘#infolettre’).expand) {
$w(‘#infolettre’).collapse();
}
if ($w(‘#hrd2kill’).expand) {
$w(‘#hrd2kill’).collapse();
}
if ($w(‘#repos’).collapsed) {
$w(‘#repos’).expand();
}
if ($w(‘#salon’).expand) {
$w(‘#salon’).collapse();
}
if ($w(‘#dress’).expand) {
$w(‘#dress’).collapse();
}
if ($w(‘#textsocial’).collapsed) {
$w(‘#textsocial’).expand();
}
if ($w(‘#checkboxGroup2’).expand) {
$w(‘#checkboxGroup2’).collapse();
}
if ($w(‘#checkboxGroup3’).expand) {
$w(‘#checkboxGroup3’).collapse();
}
if ($w(‘#texttherapeute’).expand) {
$w(‘#texttherapeute’).collapse();
}
if ($w(‘#grostext’).collapsed) {
$w(‘#grostext’).expand();
}
if ($w(‘#checkboxGroup4’).expand) {
$w(‘#checkboxGroup4’).collapse();
}
if ($w(‘#checkboxGroup5’).expand) {
$w(‘#checkboxGroup5’).collapse();
}
if ($w(‘#textsalon’).expand) {
$w(‘#textsalon’).collapse();
}
if ($w(‘#checkboxGroup1’).expand) {
$w(‘#checkboxGroup1’).collapse();
}
if ($w(‘#textdress’).expand) {
$w(‘#textdress’).collapse();
}
}
export function Button9_click(event) {
if ($w(‘#wixForms1’).collapsed) {
$w(‘#wixForms1’).expand();
}
if ($w(‘#social’).expand) {
$w(‘#social’).collapse();
}
if ($w(‘#therapeute’).expand) {
$w(‘#therapeute’).collapse();
}
if ($w(‘#pairaidant’).expand) {
$w(‘#pairaidant’).collapse();
}
if ($w(‘#harley’).expand) {
$w(‘#harley’).collapse();
}
if ($w(‘#textcover’).expand) {
$w(‘#textcover’).collapse();
}
if ($w(‘#infolettre’).expand) {
$w(‘#infolettre’).collapse();
}
if ($w(‘#hrd2kill’).expand) {
$w(‘#hrd2kill’).collapse();
}
if ($w(‘#repos’).expand) {
$w(‘#repos’).collapse();
}
if ($w(‘#salon’).collapsed) {
$w(‘#salon’).expand();
}
if ($w(‘#dress’).expand) {
$w(‘#dress’).collapse();
}
if ($w(‘#textsocial’).expand) {
$w(‘#textsocial’).collapse();
}
if ($w(‘#checkboxGroup1’).expand) {
$w(‘#checkboxGroup1’).collapse();
}
if ($w(‘#checkboxGroup2’).expand) {
$w(‘#checkboxGroup2’).collapse();
}
if ($w(‘#checkboxGroup3’).expand) {
$w(‘#checkboxGroup3’).collapse();
}
if ($w(‘#texttherapeute’).expand) {
$w(‘#texttherapeute’).collapse();
}
if ($w(‘#grostext’).collapsed) {
$w(‘#grostext’).expand();
}
if ($w(‘#checkboxGroup4’).expand) {
$w(‘#checkboxGroup4’).collapse();
}
if ($w(‘#checkboxGroup5’).expand) {
$w(‘#checkboxGroup5’).collapse();
}
if ($w(‘#textsalon’).collapsed) {
$w(‘#textsalon’).expand();
}
if ($w(‘#textdress’).expand) {
$w(‘#textdress’).collapse();
}
}
export function Button10_click(event) {
if ($w(‘#wixForms1’).collapsed) {
$w(‘#wixForms1’).expand();
}
if ($w(‘#social’).expand) {
$w(‘#social’).collapse();
}
if ($w(‘#therapeute’).expand) {
$w(‘#therapeute’).collapse();
}
if ($w(‘#pairaidant’).expand) {
$w(‘#pairaidant’).collapse();
}
if ($w(‘#harley’).expand) {
$w(‘#harley’).collapse();
}
if ($w(‘#textcover’).expand) {
$w(‘#textcover’).collapse();
}
if ($w(‘#infolettre’).expand) {
$w(‘#infolettre’).collapse();
}
if ($w(‘#hrd2kill’).expand) {
$w(‘#hrd2kill’).collapse();
}
if ($w(‘#repos’).expand) {
$w(‘#repos’).collapse();
}
if ($w(‘#salon’).expand) {
$w(‘#salon’).collapse();
}
if ($w(‘#dress’).collapsed) {
$w(‘#dress’).expand();
}
if ($w(‘#textsocial’).collapsed) {
$w(‘#textsocial’).expand();
}
if ($w(‘#checkboxGroup1’).collapsed) {
$w(‘#checkboxGroup1’).expand();
}
if ($w(‘#checkboxGroup2’).expand) {
$w(‘#checkboxGroup2’).collapse();
}
if ($w(‘#checkboxGroup3’).expand) {
$w(‘#checkboxGroup3’).collapse();
}
if ($w(‘#texttherapeute’).expand) {
$w(‘#texttherapeute’).collapse();
}
if ($w(‘#grostext’).expand) {
$w(‘#grostext’).collapse();
}
if ($w(‘#checkboxGroup4’).expand) {
$w(‘#checkboxGroup4’).collapse();
}
if ($w(‘#checkboxGroup5’).expand) {
$w(‘#checkboxGroup5’).collapse();
}
if ($w(‘#textsalon’).expand) {
$w(‘#textsalon’).collapse();
}
if ($w(‘#textdress’).collapsed) {
$w(‘#textdress’).expand();
}
}

Let me know if you need extra information. Any help is appreciated.

Simple answer, you are using the Wix Forms app and trying to add code to it.

However, as you are using the Wix Forms app, those app settings are overriding any code that you use.

You can’t add code to a submit button in Wix Forms as it is automed through the app itself.

To do this you would be much better suited just making up your own user input form and then you can add whatever code you like.

For more help with Wix Forms app itself and the issue with the apps own settings, you need to be going through Wix Support as it is not code related issue for Wix Forms app settings.
https://support.wix.com/en/article/contacting-wix-support

Plus Wix Forms have their own support pages and are nothing to do with Wix Corvid.
https://support.wix.com/en/ascend-by-wix/wix-forms

Thx for the quick reply.
Yes I am using code in the wix app form. But

  1. All my code works. It’s only collapsed/expand of the Input fields.
  2. I don’t have 1 line of code for the submit button. I’m letting the app automate the submission.

I will also ask the wix support.

Making a custom user input form on Wix is even worse a nightmare.