Hi, i have a form that has 6 field. When a user click on submit i would like to add a new field containing a token (recapcha v3).
I am trying to use
var formData = new FormData(someFormElement);
But not sure what to use for “someFormElement” to include the 6 field.
Then i will use the append to add the recapcha token
formData.append(“recapcha”, token);
Everything i tried always return a:
Uncaught TypeError: Failed to construct ‘FormData’: parameter 1 is not of type ‘HTMLFormElement’.
Of course i could just create a new empty formData and then append all 6 field with getValues()… But i would like to know if it is possible to simply create a new formData with existing webix form.