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
Published by jankapunkt almost 4 years ago
Major release with many improvements
Published by StorytellerCZ about 4 years ago
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)Published by StorytellerCZ about 4 years ago
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.
Published by aldeed almost 9 years ago
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.
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
.
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
fieldUncaught 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)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.