Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 37 total)
  • Author
    Posts
  • justdoit123justdoit123
    Participant

    The previous version 5.9.0 works perfectly with this conditon

    justdoit123justdoit123
    Participant

    Hi, this error happen only if i use Condition for Cloneable Text field

    Text 1: Text Field - Cloneable
    Text 2: Condition - Show only if Text 1 is not empty << not working in Meta Box 5.10.0

    {
        "post_type": "meta-box",
        "post_name": "test",
        "post_title": "Test",
        "post_date": "2024-08-29 11:37:03",
        "post_status": "publish",
        "post_content": "",
        "settings": {
            "object_type": "post",
            "post_types": [
                "properties"
            ],
            "context": "normal",
            "priority": "high",
            "style": "default",
            "closed": false,
            "default_hidden": false,
            "autosave": false,
            "class": "",
            "prefix": "",
            "text_domain": "your-text-domain",
            "function_name": "your_prefix_function_name"
        },
        "fields": {
            "text_xwx1k9uur4r": {
                "_id": "text_xwx1k9uur4r",
                "name": "Text 1",
                "id": "text_1",
                "type": "text",
                "label_description": "",
                "desc": "",
                "std": "",
                "text_limiter": {
                    "limit": "",
                    "limit_type": "character"
                },
                "placeholder": "",
                "size": "",
                "required": false,
                "disabled": false,
                "readonly": false,
                "prepend": "",
                "append": "",
                "datalist_choices": "",
                "clone": true,
                "sort_clone": true,
                "clone_default": false,
                "clone_as_multiple": true,
                "clone_empty_start": true,
                "min_clone": "",
                "max_clone": 6,
                "add_button": "+ Add New",
                "columns": 12,
                "tooltip": {
                    "enable": false,
                    "icon": "",
                    "position": "top",
                    "content": ""
                },
                "before": "",
                "after": "",
                "class": "",
                "sanitize_callback": "",
                "save_field": true
            },
            "text_ldicmukcwjc": {
                "_id": "text_ldicmukcwjc",
                "name": "Text 2",
                "id": "text_2",
                "type": "text",
                "label_description": "",
                "desc": "",
                "std": "",
                "text_limiter": {
                    "limit": "",
                    "limit_type": "character"
                },
                "placeholder": "",
                "size": "",
                "required": false,
                "disabled": false,
                "readonly": false,
                "prepend": "",
                "append": "",
                "datalist_choices": "",
                "clone": false,
                "sort_clone": false,
                "clone_default": false,
                "clone_as_multiple": false,
                "clone_empty_start": false,
                "min_clone": "",
                "max_clone": "",
                "add_button": "",
                "columns": 12,
                "tooltip": {
                    "enable": false,
                    "icon": "",
                    "position": "top",
                    "content": ""
                },
                "before": "",
                "after": "",
                "class": "",
                "sanitize_callback": "",
                "save_field": true,
                "conditional_logic": {
                    "type": "visible",
                    "relation": "or",
                    "when": {
                        "vu6nqbqgc": {
                            "id": "vu6nqbqgc",
                            "name": "text_1",
                            "operator": "not contains",
                            "value": ""
                        }
                    }
                }
            }
        },
        "data": [],
        "meta_box": {
            "title": "Test",
            "id": "test",
            "post_types": [
                "properties"
            ],
            "closed": false,
            "default_hidden": false,
            "autosave": false,
            "text_domain": "your-text-domain",
            "function_name": "your_prefix_function_name",
            "fields": [
                {
                    "name": "Text 1",
                    "id": "text_1",
                    "type": "text",
                    "required": false,
                    "disabled": false,
                    "readonly": false,
                    "clone": true,
                    "sort_clone": true,
                    "clone_default": false,
                    "clone_as_multiple": true,
                    "clone_empty_start": true,
                    "max_clone": 6,
                    "add_button": "+ Add New",
                    "limit_type": "character"
                },
                {
                    "name": "Text 2",
                    "id": "text_2",
                    "type": "text",
                    "required": false,
                    "disabled": false,
                    "readonly": false,
                    "clone": false,
                    "clone_empty_start": false,
                    "limit_type": "character",
                    "visible": {
                        "when": [
                            [
                                "text_1",
                                "not contains",
                                ""
                            ]
                        ],
                        "relation": "or"
                    }
                }
            ]
        }
    }
    in reply to: Select advanced & filter by term meta relation 2 taxonomy #40844
    justdoit123justdoit123
    Participant

    I'm using taxonomy_advanced for 2 taxonomy when add/edit post

    Now i want to filter select2 taxonony advanced 2 field base on tax advanced fielx 1

    justdoit123justdoit123
    Participant

    Please also fix : it still save field value even i already uncheck "save field value" in MB Builder

    in reply to: jQuery Validate still validating fields that hidden #40043
    justdoit123justdoit123
    Participant

    Any update??

    If a field is hidden by conditional logic, it will be ignored when running the validation.

    in reply to: Missing permissions if use generated php code from AIO #39898
    justdoit123justdoit123
    Participant

    i use : Capability type: custom
    and use Admin menu editor to add capabilities to roles and see that missing permission

    in reply to: Missing permissions if use generated php code from AIO #39897
    justdoit123justdoit123
    Participant

    my exported php code :

    <?php
    add_action( 'init', 'your_prefix_register_post_type' );
    function your_prefix_register_post_type() {
    	$labels = [
    		'name'                     => esc_html__( 'customers', 'your-textdomain' ),
    		'singular_name'            => esc_html__( 'customer', 'your-textdomain' ),
    		'add_new'                  => esc_html__( 'Add New', 'your-textdomain' ),
    		'add_new_item'             => esc_html__( 'Add New customer', 'your-textdomain' ),
    		'edit_item'                => esc_html__( 'Edit customer', 'your-textdomain' ),
    		'new_item'                 => esc_html__( 'New customer', 'your-textdomain' ),
    		'view_item'                => esc_html__( 'View customer', 'your-textdomain' ),
    		'view_items'               => esc_html__( 'View customers', 'your-textdomain' ),
    		'search_items'             => esc_html__( 'Search customers', 'your-textdomain' ),
    		'not_found'                => esc_html__( 'No customers found.', 'your-textdomain' ),
    		'not_found_in_trash'       => esc_html__( 'No customers found in Trash.', 'your-textdomain' ),
    		'parent_item_colon'        => esc_html__( 'Parent customer:', 'your-textdomain' ),
    		'all_items'                => esc_html__( 'All customers', 'your-textdomain' ),
    		'archives'                 => esc_html__( 'Customer Archives', 'your-textdomain' ),
    		'attributes'               => esc_html__( 'Customer Attributes', 'your-textdomain' ),
    		'insert_into_item'         => esc_html__( 'Insert into customer', 'your-textdomain' ),
    		'uploaded_to_this_item'    => esc_html__( 'Uploaded to this customer', 'your-textdomain' ),
    		'featured_image'           => esc_html__( 'Featured image', 'your-textdomain' ),
    		'set_featured_image'       => esc_html__( 'Set featured image', 'your-textdomain' ),
    		'remove_featured_image'    => esc_html__( 'Remove featured image', 'your-textdomain' ),
    		'use_featured_image'       => esc_html__( 'Use as featured image', 'your-textdomain' ),
    		'menu_name'                => esc_html__( 'Customers', 'your-textdomain' ),
    		'filter_items_list'        => esc_html__( 'Filter customers list', 'your-textdomain' ),
    		'filter_by_date'           => esc_html__( '', 'your-textdomain' ),
    		'items_list_navigation'    => esc_html__( 'Customers list navigation', 'your-textdomain' ),
    		'items_list'               => esc_html__( 'Customers list', 'your-textdomain' ),
    		'item_published'           => esc_html__( 'Customer published.', 'your-textdomain' ),
    		'item_published_privately' => esc_html__( 'Customer published privately.', 'your-textdomain' ),
    		'item_reverted_to_draft'   => esc_html__( 'Customer reverted to draft.', 'your-textdomain' ),
    		'item_scheduled'           => esc_html__( 'Customer scheduled.', 'your-textdomain' ),
    		'item_updated'             => esc_html__( 'Customer updated.', 'your-textdomain' ),
    	];
    	$args = [
    		'label'               => esc_html__( 'Customers', 'your-textdomain' ),
    		'labels'              => $labels,
    		'description'         => '',
    		'public'              => true,
    		'hierarchical'        => false,
    		'exclude_from_search' => false,
    		'publicly_queryable'  => true,
    		'show_ui'             => true,
    		'show_in_nav_menus'   => true,
    		'show_in_admin_bar'   => true,
    		'show_in_rest'        => true,
    		'query_var'           => true,
    		'can_export'          => true,
    		'delete_with_user'    => true,
    		'has_archive'         => true,
    		'rest_base'           => '',
    		'show_in_menu'        => true,
    		'menu_position'       => '',
    		'menu_icon'           => 'dashicons-admin-generic',
    		'capability_type'     => 'custom',
    		'supports'            => ['title', 'editor', 'thumbnail', 'author'],
    		'taxonomies'          => ['source-from'],
    		'rewrite'             => [
    			'slug'       => 'customer',
    			'with_front' => false,
    		],
    	];
    
    	register_post_type( 'customers', $args );
    }
    justdoit123justdoit123
    Participant

    Hi, me question is: use php code will make metabox load fast than in the builder ?

    If i use custom field generated in the builder, is it slow loading ??

    Thanks

    in reply to: Geolocation - Two-way data bindind #39365
    justdoit123justdoit123
    Participant

    it works!

    i have to edit Settings in Group Field

    thanks

    in reply to: Geolocation - Two-way data bindind #39364
    justdoit123justdoit123
    Participant

    i also add text field but nothing work, only address field works with google map

    Here is the list of components for Google Maps:

    Component Description
    street_address indicates a precise street address.
    lat indicates latitude of the result
    lng indicates longitude of the result
    geometry same as latitude,longitude

    can you please guide me how to have this : https://i1.wp.com/metabox.io/wp-content/uploads/2016/03/meta-box-geolocation.gif

    in your guide: https://docs.metabox.io/extensions/meta-box-geolocation/#configuration

    in reply to: Geolocation - Two-way data bindind #39363
    justdoit123justdoit123
    Participant

    Hi, please seee my screenshot

    I add custom field Google map

    https://vm.d.pr/i/fIQ6wi

    https://vm.d.pr/i/fIQ6wihttps://vm.d.pr/i/fIQ6wi

    in reply to: OSM + coordinates fields #39317
    justdoit123justdoit123
    Participant

    How do i Two-way data binding please help me:

    Hi, i'm using Metabox AIO, when add custom field i only see field type: Google Maps

    i cannot see Geolocation ?

    How do i enter set a location by coordinates for an OSM map. I want to use 2 fields: Latitude & Longitude.

    please guide me, i read this https://docs.metabox.io/extensions/meta-box-geolocation/#two-way-data-binding

    but i don't understand how to show field 2 fields: Latitude & Longitude to enter

    i already try enter coordinates in address field but it cannot pin (only address work)

    in reply to: OSM + coordinates fields #39316
    justdoit123justdoit123
    Participant

    Hi, i'm using Metabox AIO, when add custom field i only see field type: Google Maps

    i cannot see Geolocation ?

    How do i enter set a location by coordinates for an OSM map. I want to use 2 fields: Latitude & Longitude.

    please guide me, i read this https://docs.metabox.io/extensions/meta-box-geolocation/#two-way-data-binding

    but i don't understand how to show field 2 fields: Latitude & Longitude to enter

    i already try enter coordinates in address field but it cannot pin (only address work)

    in reply to: Cannot Translate #31247
    justdoit123justdoit123
    Participant

    hi, yes, i already changed text-domain, i leave it as an example. Do you know any other reason why it cannot be translated ??

    only this custome MB cannot be translated

    justdoit123justdoit123
    Participant

    sorry my mistake, please delete this post

Viewing 15 posts - 1 through 15 (of 37 total)