Removing last cloneable group
- This topic has 14 replies, 12 voices, and was last updated 8 months ago by
Anh Tran.
-
AuthorPosts
-
August 7, 2020 at 3:11 AM #21159
Steve Schmidt
ParticipantIs 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.
August 7, 2020 at 9:17 AM #21162Long Nguyen
ModeratorHi,
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 MB Conditional Logic to show fields if it has a condition to show.
https://metabox.io/plugins/meta-box-conditional-logic/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.
August 7, 2020 at 7:04 PM #21167Steve Schmidt
ParticipantI 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.
August 8, 2020 at 8:21 AM #21176Long Nguyen
ModeratorThanks 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.
October 1, 2020 at 10:58 PM #22221[email protected]
ParticipantWas 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
October 30, 2020 at 2:16 PM #22647jacek
ParticipantYep, I'm waiting for it too.
April 21, 2021 at 2:03 AM #27439David Risley
ParticipantThis 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?
April 21, 2021 at 2:40 AM #27440David Risley
ParticipantAlright, 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.
May 28, 2021 at 8:12 AM #28481Fabian Mossberg
ParticipantAny 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.
July 22, 2022 at 1:32 AM #37115ambrdigital
ParticipantAgreed, 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
November 27, 2023 at 1:11 AM #43938Codog
ParticipantI second this! It is really annoying to have an outstanding single cloned group with empty fields. Any updates on this? Clearly a wanted feature!
December 4, 2023 at 4:38 AM #43996tilen.s
ParticipantAnything on this one?
March 21, 2024 at 12:24 AM #44946mingjian.li
ParticipantI too am just discovering that deleting the last item is not possible š
May 24, 2024 at 6:24 AM #45513Solace
ParticipantIt's been almost 5 years, any update on this yet?
August 19, 2024 at 5:00 PM #46174 -
AuthorPosts
- You must be logged in to reply to this topic.