Is it possible to make a single group in a clonable set of groups removable? I'd like the UI to be cleaner such that if there's no items of a certain type for a post it simply is empty with a button to add one, instead of empty fields. Likewise if I need to remove an entry I can remove all of them except the last one, at which point the end user needs to erase all the data.
I’d like the UI to be cleaner such that if there are no items of a certain type for a post, it simply is empty with a button to add one, instead of empty fields
I think you can use the extension Meta Box Conditional Logic to show fields if it has a condition to show.
I need to remove an entry I can remove all of them except the last one, at which point the end-user needs to erase all the data
Thanks for your idea, I'm going to create a feature request to support a button to remove all cloneable fields and keep the last one.
I can see that being useful but not entirely what I was after. ACF actually does this pretty well, you can erase all the clones so there's 0 on screen and it only has a button to add a row, so if there's 0 of something there's also 0 visible rows in the backend. It seems in MB.IO there's always one clone minimum visible. So the request would be the ability to just have 0 fields visible except a button to add clones as needed, and once that's possible we'd be able to remove the final row in a set the same way we can remove the rest.
Thanks for the feedback, I will note all ideas into the request and assign to the developer team to improve the cloneable field.
Have a good day.
Was this feature ever added? I am having an issue whereby i have no items for a post but when i save it creates an empty group / cloned set of fields. Thanks
Yep, I'm waiting for it too.
This is really needed. There seems to be no way to have a field group which has zero entries, or am I missing something? What if you want to use a field group for a log, but yet it is possible to not have any log entries yet?
Alright, yeah, unfortunately, I'm going to have to stick with ACF until you guys can fix this simple issue. What I need is for the group functionality to work just like the repeater field in ACF. And, in ACF, you can easily remove every row as well as have ZERO rows. But, with Metabox, it seems as if it is impossible to delete a row if you only have one. That is a really WEIRD limitation to build into the interface.
Please fix this. Seems so simple.
To be honest, the interface for this should be similar to the field builder when adding sub-fields in a group. It works beautifully. Nice icons for expansion, and a clear trash button to delete a sub-field. Also, white background to make it all look good.
Do that for group fields, too. It is sorely needed.
Any updates on this?
It's very annoying to have to keep one item, and delete all it's content.
I want to be able to remove all items in the list, so that only the button is there. If i click it, the first item should be created.
Agreed, really could use this feature for a number of projects. Don't want to have an empty group if I don't need it. Thanks
I second this! It is really annoying to have an outstanding single cloned group with empty fields. Any updates on this? Clearly a wanted feature!
Anything on this one?