Use nested fields in Oxygen Builder repeater element

Support General Use nested fields in Oxygen Builder repeater elementResolved

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #29173
    paul@webdegelijk.nl[email protected]
    Participant

    Hi,

    I would like to use a Oxygen repeater element to show site links that are added to a WordPress page. I use a group field, that has 2 subfields ('name link' and 'url link').

    The problem is that in Dynamic data I cannot find these sub fields, why is that? I can only find the group field..
    So I tried to add them as custom fields, no luck. https://share.getcloudapp.com/2NuqmXq5
    Can you help?

    Regards,
    Paul

    #29185
    Long NguyenLong Nguyen
    Moderator

    Hi Paul,

    Oxygen is not fully compatible with Meta Box fields. If you want to show the value of the subfields, please try to create a shortcode or a function to show them. Get more details on this documentation https://docs.metabox.io/extensions/meta-box-group/#outputing-group-with-page-builders

    #29202
    paul@webdegelijk.nl[email protected]
    Participant

    Thank you Long, for now I switched to normal fields, not nested fields. I work therefor with conditions. I use to click, 'has any value' in ACF (https://share.getcloudapp.com/NQuol20d), worked great, but in Metabox I cannot. So I tried = with this value: null. But that doesnt seem to
    work, tried some other options too.
    Please let me know what I am missing.
    Regards,
    Paul

    #29206
    Long NguyenLong Nguyen
    Moderator

    Hi Paul,

    We can use the operator != to check if the logic field has any value. But this case only works with the code, not in the Builder to avoid broken conditional logic.

    'fields' => [
        [
            'name' => __( 'Text1', 'your-text-domain' ),
            'id'   => $prefix . 'text1',
            'type' => 'text',
        ],
        [
            'name'    => __( 'Text2', 'your-text-domain' ),
            'id'      => $prefix . 'text2',
            'type'    => 'text',
            'visible' => [
                'when'     => [['text1', '!=', '']],
                'relation' => 'or',
            ],
        ],
    ],
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.