Skip to content

Releases: Meteor-Community-Packages/meteor-autoform

v5.5.0

31 Aug 12:46

Choose a tag to compare

For boolean-radios and boolean-select input types, you can now use the nullLabel attribute to specify a label (e.g., "None") for when the value is not set (or to unset it). For backwards compatibility, the boolean-radios type will not render a radio element for unsetting unless you set nullLabel.

v5.4.1: Fix `AutoForm.getFieldValue`

14 Aug 05:07

Choose a tag to compare

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

03 Aug 13:51

Choose a tag to compare

  • 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

06 Jul 02:56

Choose a tag to compare

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

v5.3.0

29 May 02:51

Choose a tag to compare

  • 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

21 May 21:58

Choose a tag to compare

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

v5.1.2

30 Mar 23:45

Choose a tag to compare

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

v5.1.1

27 Mar 20:34

Choose a tag to compare

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

v5.1.0

26 Mar 15:19

Choose a tag to compare

  • 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

20 Mar 21:01

Choose a tag to compare

Compatible with Meteor v1.0.4+