-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: how to control where a collection is rendered #640
Comments
Code please. Which sample from the docs? Maybe you just mean templates? Use templates to rearrange form fields. |
As mentioned i'm using the the code from the docs: https://kristijanhusak.github.io/laravel-form-builder/field/collection.html as you can see in the screenshot, the 'tags' is at the top and the 'add collection' is at the bottom. Pressing the add collection add to the top. I would have assumed that one could control where the collection is rendered, including the button |
You can. It's a template. The tags field is part of the form: |
My point is more that it is difficult to figure out how it works, and the example in the doc does not work very well |
Ah. I've never used or tried the docs example, so I don't know. How it works isn't so difficult, is it? You use JS to add more rows to submit. When you get it working, you're very welcome to improve the docs example.
|
Hi
I'm trying to figure out how to get a few collections rendered in the correct place
I have 5 fields that I would like to have in the beginning and then two collections as two rows
But I can figure out hw to get the non collection fields rendered an then the collections - the first entry of the collection is in the right place, but then when 'adding' to the collection the new entries gets added to the top of the form
I'm using the sample from the documentation
The text was updated successfully, but these errors were encountered: