Multipule Elements in Array

Hey Guys,
This sounds really simple but is giving me a lot of trouble. I am trying to load multipule contact form elements into an array. Wix documentation says i should do the following:
let selected = $w(“#myElement1, #myElement3, Type”);

My Code
let formType = $w(“#mckinneyForm”).type
let forms = $w(" #mckinneyForm, #rockwallForm, #murphyForm, #richardsonForm, #planoForm, #mesaForm, formType");

However, the wix code editor complains throwing. Unexpected token error. Not totally sure what im doing wrong. Any Help is appreciated.

Hello Judah,

I tried your code but it didn’t show any errors,

 let formType = $w("#contactForm1").type;
 let forms = $w("#contactForm1, #contactForm2,formType");  
 console.log(forms);  

but it might be an error of another line of code.

but let’s do it in another way :

let forms=$w("#mckinneyForm, #rockwallForm, #murphyForm, #richardsonForm, #planoForm, #mesaForm");

define an array then just add the elements you want between " " , separated by “,” .

Hope this helps you.

Mustafa