Home Forums General Issues Grouping large amounts of fields Reply To: Grouping large amounts of fields

  • Sure thing. I’m going to take them in reverse order. 🙂

    3. Repeater Field and Flexible Content Field doesn’t really do what I need

    I want to group large sections of fields inside one Field Group. The users should not be able to create multiple values for each field.

    2. with repetitive conditional logic applied to them, and no wrapper.

    In lack of a Group Field (or something similar), I can’t wrap all the “Cars” subfields and only set conditional logic on that group, I need to set the logic on each field, which gets quite fiddly, although it’s not the biggest issue.

    I can’t find a way of wrapping a set of fields in a HTML wrapper with the regular ACF.

    1. I want it to render directly below the category

    Category-specific fields needs to appear right below the category field in the form. This is what the form look like (all are ACF fields):

    (Wrapped in a div:) Category-specific fields: [field 1], [field 2], …
    …the rest of the form…

    With one Field Group for each category, I could have render two forms on the front-end: the main post form and the category subfields form, but this is not an option. I made the conclusion that in order to keep all fields in the same form, all fields need to be in the same Field Group. Am I wrong? Is there a clean way of including fields from one Field Group in another Field Group’s form?

    UPDATE: I could set 'form' => false when calling acf_form() for all per-category Field Groups. That would render them either at the top bottom of the form, but that’s solvable jQuery-wise. Still prefer spitting out ordered HTML, so if there is a better way, shoot!

    Conditional logic and category

    Another problem is that I can’t set a field to depend on the value of a taxonomy field. Is there an add-on, official or not, to solve this?