Hi.
I’m using the wix forms, I added some code only for the input fields. Some simple Collapsed and expand. So all the code I wrote works fine. I have 0 lines of code for the submit button, i’m letting the wix form app do it’s own automation for the submission.
My problem is the submit button does not work. Nothing happens at all.
I have changed the ID of the submit button twice, in case.
I have called Wix support. The person said it was a code related problem and it’s being escalated to the coding team. But I cant wait 48h.
https://www.alphaveterans.ca/home
Any button on the site goes to the lightbox with the form.
Here is also my code.
export function Button1_click(event) {
if ($w(‘#wixForm1’).collapsed) {
$w(‘#wixForm1’).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();
}
}
Any help is appreciated.
Thx!