A mapping of data types requested for each form field.
A record of TinyMCE editors which are linked to this form.
Process the HTML form element to populate the FormData instance.
The HTML form being processed
Options forwarded from the constructor
Assign a value to the FormData instance which always contains JSON strings. Also assign the cast value in its preferred data type to the parsed object representation of the form data.
The field name
The raw extracted value from the field
Append values to the form data, adding them to an array.
The field name to append to the form
The value to append to the form data
Process all standard HTML form field elements from the form.
The form being processed
Options forwarded from the constructor
Process editable HTML elements (ones with a [data-edit] attribute).
The form being processed
Options forwarded from the constructor
Process TinyMCE editor instances which are present in the form.
Obtain the parsed value of a field conditional on its element type and requested data type.
The field name being processed
The HTML field or a RadioNodeList of multiple fields
The processed field value
Cast a processed value to a desired data type.
The raw field value
The desired data type
The resulting data type
An extension of the native FormData implementation.
This class functions the same way that the default FormData does, but it is more opinionated about how input fields of certain types should be evaluated and handled.
It also adds support for certain Foundry VTT specific concepts including: Support for defined data types and type conversion Support for TinyMCE editors Support for editable HTML elements
The form being processed
Options which configure form processing
A record of TinyMCE editor metadata objects, indexed by their update key
A mapping of data types for form fields
Include disabled fields?
Include readonly fields?