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.
Important: this release brings compatibility with aldeed:[email protected]
and aldeed:[email protected]
Full Changelog: https://github.com/Meteor-Community-Packages/meteor-autoform/compare/7.0.0...7.1.0
Major release with many improvements
firstOption
when specified in the schema can now be a function (thanks @MartinBucko)AutoForm.selectFirstInvalidField
works on more types of fields (thanks @ro6)doc
is now passed to the schema during validation to support multiple schema variations (thanks @gregory, @nidem)afArrayField
with the bootstrap3
template now supports panelClass
and headingClass
attributes (thanks @c316)autosave=true
forms with the same field name and value, they will now reliably save every time (thanks @abernix)Updated to have a weak dependency on aldeed:[email protected] in addition to aldeed:collection2-core. Core has been merged back into the main package as a 3.0.0 release.
You can now set singleMethodArgument=true
as a form attribute on a method-update
type form, and your method will be called with a single object argument with _id
and modifier
properties. You should do this if using the mdg:validated-method package.
For "normal" type forms, don't end submission until this.done()
is called.
Sticky validation improvements
Fix boolean-radios templates
data
attribute on afFieldInput
, which is then added to the data context of the input type template. (See the readme.)null
option is chosen for a boolean fieldFor 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
.