Back to your problem, especialy this part…
I tried doing that using Wix Apps , I create an app and was manage to connect it to a webhook that triggers on a form submission , but I wasn’t able to get those hidden fields. It’s like the App just ignores them.
Is there a way to send all of these fields as a JSON payload to a webhook URL using some custom code?
But then you …
Hi, so I ditched the Wix app, and instead I was able to push the form’s fields to a webhook using this request URL script:
And now you are using a custom created form with the following code…???
import {fetch} from 'wix-fetch';
export function contactus_wixFormSubmitted() {fetch( "https://hook.integromat .com/ia4ods8mjptw4e4exz", {
"method": "post",
"headers": {
"Content-Type": "application/x-www-form-urlencoded"
},
"body":
"first_name="+$w('#firstname').value+
"&last_name="+$w('#lastname').value+
"&email="+$w('#email').value+
"&website="+$w('#website').value+
"&message="+$w('#message').value+
"&cid="+$w('#cid').value
}).then((httpResponse) => {
if (httpResponse.ok) {return httpResponse.json();} else {return Promise.reject("Fetch did not succeed");}
})
.then((json)=> console.log(json.someKey))
.catch(err => console.log(err))}
But i am confused, because it seems like you are still using wix-forms…
export function contactus_wixFormSubmitted() {
And this is why you have still the issue (i think).
If i would be → YOU ← what i would do in your situation?
There are two 2-ways to get out of your issued situation (on my opinion).
- You get rid of the wix-forms completely and you use your own created custom-form.
- You continue using wix-forms, but first do some testing on it.
Let’s take way-2 (using Wix-Forms).
Step-1: Testing the EXACT behaviour of your form.
You say, that if a field is set to → hidden <–, or → collapsed <–, these hidden values do not submit any data on form-submission?
Test it! Hide oder collapse all your other FIELDS …

Just do not hide or collapse → FIRST-NAME <–!
So now, if we would follow your theory → you should get only the VALUE of → FIRST-NAME, because all other fields are either hidden or collapsed.
Theory prooved? ! ?
Step-2: Clariy if your additional field → “cid” is a part of the → Wix-Form <—, or is it a custom created (additionaly added field) ???
Tested? >>> Is your → cid-field ← a part of Wix-Forms ?
Step-3: Inspecting all given possibilities, regarding → Wix-Forms and it’s provided APIs…