Support General Display element based on 'post' Reply To: Display element based on 'post'

#1357
carassiuscarassius
Participant

here is how I have all my contact metaboxes setup..No boxes appear until I select a name, and then they all become visible under the "New" inputs ie this email

// Show this email field if match name.
            $meta_box['fields'][] = array(
                'name'        => 'New Email',
                'id'      => $prefix . 'email_' . $customer->ID,
                'type'        => 'text',
                'std'         => get_post_meta( $customer->ID, 'p52_quote_email', true ),
                'visible'     => array( $prefix . 'name', $customer->ID ),
                'columns' => 6
            );

This is the full contact php

https://pastebin.com/FSGCMCHJ