How do you submit a form with a file and other fields?

I had a form with a file and it worked. The file would be uploaded.

https://webix.com/snippet/a00d6fc0

Now I want to add a checkbox field.

https://webix.com/snippet/d2eb4719

But still only the file is uploaded to the server, the checkbox value is never sent to the server.

Okay previously the form was being submitted because the uploader had autosend true.

I’m trying to add the checkbox value to formData of the uploader but I can’t figure out the correct syntax.

formData: {
////validate_only: checkbox.data.value
validate_only: validate_only.checkbox.data.value
}

try this
https://webix.com/snippet/959429f0
to be collected in getValues(), element must have name

This works! Thank you very much!