useForm
For actions without a form, await form.submit(values) or form.submit(formData). Calling form.submit() submits the current values, or an empty payload when no fields are configured. Successful writes refresh View data before onSuccess. Draft values remain until reset. Invalid values reject submission and populate field errors. Submission failures reject unless onError handles them; omit onError when a confirmation must stay open on failure.
Values are encoded as multipart FormData: strings are preserved, numbers and booleans become strings, and File and Blob values remain binary. Arrays produce repeated entries under the same field name; null and undefined are omitted. Nested objects are not supported. Pass FormData directly when you need explicit multipart entries. With a schema, FormData fields become scalars for a single entry and arrays for repeated entries; submit an object to preserve single-item arrays.