Home Forums Feature Requests Few Requests for ACF


Few Requests for ACF

  • Put Field Group into Tabs.
    We can already do this with the fields.

    Move a field.
    We can already duplicate fields, it would also be nice if we can move fields into and out of repeatable fields, flex fields, or field groups.

    Make a custom dynamic field.
    Or if we can use existing field such as selection, radio, etc as a way to make dynamic by adding scripting to it. For example, if I make an ACF text field to connect to a certain CPT, it would be nice to plug in all entries from that text field of that CPT and beable to add it as a selection field.

    Ability to add a css class to field types.
    Adding a desired class name to a field type.
    This will allow a savvy developer to easy style how a field looks in admin area.

    More field layout options
    I know we have row or table as field options for Repeatable/flex fields, But is there a way to, if we choose Table that we can also choose to stack the textfields, selections, options, textareas, and other like fields, except the image, gallery, file, Map fields? This can save space so everything won’t look so bunch up.

  • Hi @scohenkcpt-org

    Some nice feature requests. I will attempt to respond to at least some of them:

    Put Field Group into Tabs.
    We can already do this with the fields.

    A field group is essentially a CPT post while a tab is just a field type (meta information for that field group) so placing a field group within a tab is a big challenge. I suppose it would be possible to add another field group as a subgroup of a field group by a new field type. It would not be limited to just a tab tho. There is however a few rather big issues. First off, what if the two field groups have conflicting location rules/hide rules etc? Secondly, the layouts (in admin) could quickly get very complicated with nested tabs within different field groups, field sizes etc. etc. Perhaps Elliot think this is a good idea anyway, perhaps not. I will post it as a suggestion and we’ll see what he thinks.

    Move a field.

    This is already possible with the exception of field group to field group. You can move a field around freely in and out of repeaters, flexible fields, tabs etc. by simply dragging and dropping.

    Make a custom dynamic field.

    You can already achieve your example by using filters provided in ACF.
    And most fields can be dynamically modified however you see fit using that or other filters available. Most users of ACF does not require this however so I think adding it as some sort of complex visible settings to the fields or field groups is a bad idea. It’s better to keep advanced functionality in hooks for developers to tinker with 🙂

    Ability to add a css class to field types.

    I think in recent version of ACF you’ll now get the field name as a class in the input (or wrapper of the input). That can be used to pretty easily style a field in admin. I do understand that you might want to add a more generic class to many different fields in the same field group tho. Using the acf/load_field filter you can hook into any fields you want and add your own classes:

    function my_acf_load_field( $field ) {
    	$field['wrapper']['class'] = 'customclass';
    	return $field;
    add_filter('acf/load_field', 'my_acf_load_field'); //hooks into ALL fields.

    More field layout options

    What do you mean by “stack”? You also have the option of “block” which’ll pretty much let you set any widths and they’ll stack up next to each other if space is available.

  • Thanks for the input!

    About the first question Tabs for Field groups…
    I usually use a plugin called Tabify

    However it would be kinda nice to include in ACF.

    Move a field.
    I didn’t know I can move in and out of repeatable, flexible fields 🙂
    It would be very nice to be able to move it in and out of field groups.

    Even Muting or disabling a field would be nice because sometimes I want to keep the field but disable it from being used.

    Any thoughts on add sliders and on/off button to replace the true/false or sliders for numbers?

    Thank you for all other responses!

  • There’s at least one number slider add on you can use for ACF:

    As for the on/off I suppose one could just add an option to the true/false field instead with “enhanced look”. Much like select fields can have select2 activated for a friendlier interface.

    About the tabs. Are you aware that there are a tab field in ACF with which you can “sort” the fields up in different tabs? There’s also the ability to have child-tabs and even set them to be horisontal or vertical.

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Few Requests for ACF’ is closed to new replies.