AutoForm is a Meteor package that adds UI components and helpers to easily create basic forms with automatic insert and update events, and automatic reactive validation.
Fix AutoForm.getFieldValue
so that it reacts properly when first called outside of the form, before the form has been rendered. Also attempt to limit unnecessary reruns.
autoform.group
option. See "Grouping Fields" in README. (Thanks @SachaG)formToModifier
now works properly (Thanks @aramk)update-pushArray
forms now work properly when there is an array index in the scope
fieldFix issue where afFieldValue
tracking didn't work for non-boolean radio buttons and check boxes.
Uncaught TypeError: Cannot read property 'changed' of undefined
errorddp
attribute for specifying an alternative DDP connection for "method" and "method-update" forms (Thanks @patrickleet)formgroup-
prefix on afFormGroup
/afQuickField
attributes. For example, formgroup-class="foo"
adds "foo" class to the form group element. (Thanks @fknipp)panelClass
, headingClass
, and bodyClass
attributes for the afObjectField
component. (Thanks @fknipp)Fix issues with errors being thrown during reactive changes and issues with getting reactive field values.
Fix validation of typeless forms when done with AutoForm.validateForm()
Fix validation of typeless forms broken in 5.1.0 (Thanks @abecks)
type="update"
and type="method-update"
forms, a formToModifier
hook is called instead of formToDoc
, and it's passed a Mongo modifier. For forms with no type
attribute, both formToDoc
and formToModifier
are called. (You should provide one or both based on whether you use the doc, the modifier, or both in your onSubmit
hook.)setArrayItems=true
on your autoForm
or quickForm
.schema
attribute and a collection
attribute. In that case, validation against the form schema happens before the before hooks run, and validation against the collection schema happens after the before hooks run, before your method is called.Compatible with Meteor v1.0.4+
Minor fix