jonjamz / blaze-forms

Dead easy reactive forms with validation (Meteor).
https://atmospherejs.com/templates/forms
MIT License
113 stars 11 forks source link

Select options #57

Closed alexofob closed 9 years ago

alexofob commented 9 years ago

How do you provide different options list to different select input?

jonjamz commented 9 years ago

You could try passing it in when you invoke the template. For example:

{{> selectElement field='someField' options=yourCustomOptions}}

And you'd define those in a helper in your outer form template.

Or, you can do it with initial data, or using allowedValues in your schema.

jonjamz commented 9 years ago

Referencing issue #48 here to make sure I add examples to the docs.