Hello, I’m trying to achieve something with simplSchema and AutoForm:
I have a collection with several objects, some of them has a default quantity and others doesn’t, so I want to make an Array field to contain them, but in the form view it should render check-boxes for each document on the collection, so the user can pick the elements he wants, and also need to show a field for each element which doesn’t have a default quantity, because it’s required to enter the quantity before submitting the Array, something like this:
(this image is not real I made it with paint it’s just to give you an idea of what I want to achieve)
I hope to get something like this on form submit :
is this possible with AutoForm and simplSchema? if it is, how can I achieve that result?
I hope you can help me , thanks a lot for the help.