A mapping of data types requested for each form field.
A record of TinyMCE editors which are linked to this form.
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 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
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
Param: form
The form being processed
Param: options
Options which configure form processing
Param: options.editors
A record of TinyMCE editor metadata objects, indexed by their update key
Param: options.dtypes
A mapping of data types for form fields
Param: options.disabled
Include disabled fields?
Param: options.readonly
Include readonly fields?