Custom Fields
Re-Envisioned
Support Meta Box Group Removing last cloneable group

  • Creator
    Topic
  • #21159
    Steve Schmidt
    Participant

    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Author
    Replies
  • #21162
    Long Nguyen
    Moderator

    Hi,

    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.
    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.

    #21167
    Steve Schmidt
    Participant

    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.

    #21176
    Long Nguyen
    Moderator

    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.

    #22221
    dev@kijo.co
    Participant

    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

    #22647
    jacek
    Participant

    Yep, I'm waiting for it too.

    #27439
    David Risley
    Participant

    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?

    #27440
    David Risley
    Participant

    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.