Open keithradford opened 1 year ago
You can currently pass a data object into useForm which allows you to merge additional data from outside the form into the submission.
data
useForm
It would be nice if, similarly to this, we could pass callback functions which perform operations on data from our form before submission.
For example, if I have a dropdown for selecting a state:
Washington
WA
This could be a new attribute of the options PR, or potentially could be inferred from the existing data attribute.
options
You can currently pass a
data
object intouseForm
which allows you to merge additional data from outside the form into the submission.It would be nice if, similarly to this, we could pass callback functions which perform operations on data from our form before submission.
For example, if I have a dropdown for selecting a state:
Washington
Washington
intoWA
WA
is sent to FormspreeThis could be a new attribute of the
options
PR, or potentially could be inferred from the existingdata
attribute.