Adds the specified field to the front of this form.
Adds the specified field to the front of this form.
This means that calling myForm.withField(field1).withField(field2)
will
give you those fields in reverse order in your submission handlers
(field2
's value first, then field1
's). It's recommended that you
instead use the withFields
or withAjaxFields
helpers, which let you add
a group of fields all at once in proper order and leaves you with a form
that can accept submission handlers.
A new FormailtyFormProto
with the given field prepended to its
list of fields. Note that you still need to call formalize
or
ajaxFormalize
on the form if you want to attach submission
handlers.