Support Forum » User Profile

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • Cecil AshiteyCecil Ashitey
    Participant

    Sorry to push this, but is there any ETA on when the update will be pushed out?

    Cecil AshiteyCecil Ashitey
    Participant

    Hi

    We are seeing instances of the plugin affecting the "Visual" tab when attempting to add content to a page.

    I understand that an update to the plugin will resolve the current issues. However, because it's critical that this issue is resolved, are you able to share a timeline for when the update will be made live, please?

    Thanks in advance.

    Cecil AshiteyCecil Ashitey
    Participant

    Hi Long Nguyen,

    I was able to use MB Include Exclude but at the same time, I am thinking if I can switch places of the boxes when I change the template.
    For example
    Template1 has section1 which has box 1 and box2, Section2 has box3 and box4
    Template2 has section1 which has box1, section2 has box2 and box3

    Thanks

    Cecil AshiteyCecil Ashitey
    Participant

    Thanks, Long Nguyen
    For the information, I would proceed with MB Include Exclude.

    Cecil AshiteyCecil Ashitey
    Participant

    Hi,

    Thanks for the reply.
    Yes I have two page templates but i want to use the same field value and same field id. Following is the varition i want to use.
    varition one for template 1:-

    $meta_boxes[] = [
            'title'      => 'Section One',
            'id'         => 'section1',
            'post_types' => ['page'],
            'context'    => 'after_title',
            'visible' => array('page_template','=','template-1.php'),
            'fields'     => [
                [
                   'type'    => 'select',
                    'id'      => 'field_one',
                    'options' => range_options(),
                    'multiple'  => false,
                    'placeholder'  => 'Select an Item',
                    'columns' => 6,
                ],
                [
                        'visible' => array( 'field_one' , '=', 'field_123' ),
                        'name' => 'Title',
                        'id'   => 'one_title',
                        'type' => 'text',
                    ],
                [
                   'type'    => 'select',
                    'id'      => 'field_two',
                    'options' => range_options(),
                    'multiple'  => false,
                    'placeholder'  => 'Select an Item',
                    'columns' => 6,
                ],
                [
                        'visible' => array( 'field_two' , '=', 'field_456' ),
                        'name' => 'Title',
                        'id'   => 'two_title',
                        'type' => 'text',
                    ],
          ]
        ];
    

    Variation 2 for template 2 :

    $meta_boxes[] = [
            'title'      => 'Section One',
            'id'         => 'section1',
            'post_types' => ['page'],
            'context'    => 'after_title',
            'visible' => array('page_template','=','template-2.php'),
            'fields'     => [
                [
                   'type'    => 'select',
                    'id'      => 'field_one',
                    'options' => range_options(),
                    'multiple'  => false,
                    'placeholder'  => 'Select an Item',
                ], 
              [
                        'visible' => array( 'field_one' , '=', 'field_123' ),
                        'name' => 'Title',
                        'id'   => 'one_title',
                        'type' => 'text',
                    ],
            ]
            ];
    $meta_boxes[] = [
            'title'      => 'Section Two',
            'id'         => 'section2',
            'post_types' => ['page'],
            'context'    => 'after_title',
            'visible' => array('page_template','=','template-2.php'),
            'fields'     => [
                [
                   'type'    => 'select',
                    'id'      => 'field_two',
                    'options' => range_options(),
                    'multiple'  => false,
                    'placeholder'  => 'Select an Item',
                ], 
                [
                        'visible' => array( 'field_two' , '=', 'field_456' ),
                        'name' => 'Title',
                        'id'   => 'two_title',
                        'type' => 'text',
                    ],
            ]
            ];

    I am able to set field value in one template and when I switch templates it has that value saved which is what I am looking for.

    The issue is with the condition-based visibility of the fields. I mean when I select an option from the dropdown then on the 1st template it displays the subfields associated with it but it fails to do the same when I switch the template.

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