A mapping of data types requested for each form field.
A record of TinyMCE editors which are linked to this form.
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
Private
#processPrivate
Process all standard HTML form field elements from the form.
The form being processed
Options forwarded from the constructor
Process disabled fields?
Process readonly fields?
Private
#processPrivate
Process editable HTML elements (ones with a [data-edit] attribute).
The form being processed
Options forwarded from the constructor
Process disabled fields?
Process readonly fields?
Private
#processPrivate
#getPrivate
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
Private
#cast
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?