Meteor Autoform Versions Save

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.

v5.4.1

8 years ago

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.

v5.4.0

8 years ago
  • New 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 field
  • Other minor documentation and dependency changes

v5.3.1

8 years ago

Fix issue where afFieldValue tracking didn't work for non-boolean radio buttons and check boxes.

v5.3.0

9 years ago
  • Fix Uncaught TypeError: Cannot read property 'changed' of undefined error
  • Fix for checkboxes and radio buttons not triggering form change event (Thanks @abecks)
  • Add ddp attribute for specifying an alternative DDP connection for "method" and "method-update" forms (Thanks @patrickleet)
  • Add support for formgroup- prefix on afFormGroup/afQuickField attributes. For example, formgroup-class="foo" adds "foo" class to the form group element. (Thanks @fknipp)
  • For Bootstrap theme templates, you can now specify panelClass, headingClass, and bodyClass attributes for the afObjectField component. (Thanks @fknipp)

v5.2.0

9 years ago

Fix issues with errors being thrown during reactive changes and issues with getting reactive field values.

v5.1.2

9 years ago

Fix validation of typeless forms when done with AutoForm.validateForm()

v5.1.1

9 years ago

Fix validation of typeless forms broken in 5.1.0 (Thanks @abecks)

v5.1.0

9 years ago
  • Fix date handling when dealing with very low year numbers. (Thanks @jfly)
  • For 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.)
  • Array handling was changed in 5.0 to support additional use cases. However, this change also resulted in a MongoDB array handling quirk no longer being masked by AutoForm. Since this caused confusion for many people, array handling is now reverted back to pre-5.0 behavior. If your form needs to update specific array items as opposed to entire arrays, you can opt in to the proper array handling by putting setArrayItems=true on your autoForm or quickForm.
  • For "method" and "method-update" type forms, before hooks will now run before validation, unless you've specified both a 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.
  • Changes to avoid benign errors being thrown.
  • Fix potential for infinite loops related to tracking field values.

v5.0.3

9 years ago

Compatible with Meteor v1.0.4+

v5.0.2

9 years ago

Minor fix