Custom Fields
Re-Envisioned
Support General Use nested fields in Oxygen Builder repeater element

  • Creator
    Topic
  • #29173
    Resolved paul@webdegelijk.nl
    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #29185
    Long 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
    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 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 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.