Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1,006 through 1,020 (of 3,839 total)
  • Author
    Posts
  • in reply to: Custom Fields and jQuery Validation #47224
    PeterPeter
    Moderator

    Hello Nick,

    I create a custom field type following the documentation https://docs.metabox.io/creating-new-field-types/

    and I can use the jQuery validation, frontend filter validation properly. Here is the example code:

    add_filter( 'rwmb_meta_boxes', function ( $meta_boxes ) {
        $meta_boxes[] = [
            'title'      => 'Profile',
            'id'         => 'post-profile',
            'post_types' => 'post',
            'fields'     => [
                [
                    'name' => 'Hotline',
                    'id'   => 'hotline',
                    'type' => 'phone',
                    
                ],
            ],
            'validation' => [
                'rules'  => [
                    'hotline' => [
                        'required'  => true,
                        'minlength' => 7,
                    ],
                    // Rules for other fields
                ],
                'messages' => [
                    'hotline' => [
                        'required'  => 'hotline is required',
                        'minlength' => 'hotline must be at least 7 characters',
                    ],
                    // Error messages for other fields
                ],
            ],
        ];
    
        return $meta_boxes;
    } );
    
    add_filter( 'rwmb_frontend_validate', function( $validate, $config ) {
        // Check if users have selected files for an image upload field.
        if ( empty( $_POST['hotline'] ) ) {
            $validate = 'Please add a phone number';
        }
        return $validate;
    }, 10, 2 );
    in reply to: Generate checkbox list choices with callback #47220
    PeterPeter
    Moderator

    Hello Yumiko,

    Can you please share more details of the issue on your site? Because I don't know what exactly the issue is. Let me know the callback function, other field values, settings page ... and screenshots of them.

    in reply to: mb_blocks_preview not working #47215
    PeterPeter
    Moderator

    Hello metafan,

    I'm sorry about this experience but it isn't solved. I will let you know when this event is added back to the MB Blocks plugin.

    in reply to: rwmb_frontend_validate & Field data #47212
    PeterPeter
    Moderator

    Hello Nick,

    The filter rwmb_frontend_validate doesn't pass the field settings to the callback function. You can use the helper function rwmb_get_field_settings to get the field settings.
    Please follow the documentation https://docs.metabox.io/functions/rwmb-get-field-settings/

    in reply to: Where To Get Metabox AIO Files #47210
    PeterPeter
    Moderator

    Hello,

    You can go to the My Account page, login to your account and download the Meta Box extension plugins to install it on your site manually. Please check this screenshot https://imgur.com/0M047T7

    in reply to: Squirrly SEO and ACF to custom Schemas #47209
    PeterPeter
    Moderator

    Hello Jorge,

    I don't see any specific settings or an addon plugin when they use ACF to create custom fields for Squirrly so I think it will work with Meta Box. Can you try to create the same field ID and see if it works?

    PeterPeter
    Moderator

    Hello,

    If you use the MB frontend shortcodes to show the form and dashboard in the frontend without using Bricks, do they work on your site? Please follow the documentation
    https://docs.metabox.io/extensions/mb-frontend-submission/
    I think the issue arises from the Bricks element itself, not from Meta Box.

    in reply to: Category Image Slider Not Displaying on website #47207
    PeterPeter
    Moderator

    Hello Jacques,

    You had a similar issue in the past, here is the topic https://support.metabox.io/topic/dont-know-where-the-settings-are-and-no-longer-working-upon-upgrading/

    I already replied to this issue in the ticket system:

    I'm not able to edit the theme file on your test site. But I suggest you check two files that get the slider option of the category and show the HTML elements.
    /wp-content/themes/thrill/partials/header/title.php
    /wp-content/themes/thrill/includes/title.php
    
    or contact your developer who creates this custom theme and ask them to check the issue for you.

    Can you please recheck the file that I suggested?

    in reply to: The custom field blank in admin dashboard #47199
    PeterPeter
    Moderator

    Hello Neha,

    Do you try to switch the theme to a WordPress theme also? If you still cannot edit a field group, please share your site admin account by submitting this contact form https://metabox.io/contact/
    I will take a look.

    in reply to: MB Custom Posts With No Custom Fields are Blank Pages In Edit #47195
    PeterPeter
    Moderator

    Hello Brent,

    The custom fields when editing a CPT are displayed properly on my site, screenshot https://imgur.com/AARZKaW

    Please try to clear all caches (plugin, browser, hosting ...) then deactivate all plugins except Meta Box, MB AIO, switch to a WordPress theme and check the issue again.

    PeterPeter
    Moderator

    Hello Antoine,

    Maybe the data is copied exactly to the post in the second language, but the data (post, term IDs) is in the first language so it won't display when you edit the post.
    It would need to have some custom code from the Polylang side to adjust the ID after you click the Plus icon to translate the post.

    in reply to: How t set capabilities for Taxonomies #47191
    PeterPeter
    Moderator

    Hello Alan and Tom,

    Thank you for your feedback. We already had a task in the backlog development to support an option to set the capability for the taxonomy. I will inform the development team to increase the priority of the task and include the feature in future updates.

    in reply to: Background image doesn't render in Gutenberg #47190
    PeterPeter
    Moderator

    Hello,

    Thanks for the details. I see that issue on the demo site. I'm escalating the issue to the development team to take a look and get back to you later.

    PeterPeter
    Moderator

    Hello Fabien,

    Can you please share some screenshots of the field group and the editing page so I can understand the issue? Please notice that the tab field must be added to the field group as the first field to make it work. See this screenshot https://imgur.com/uBLrNyr

    in reply to: ℹ️Relationships in Elementor? #47186
    PeterPeter
    Moderator

    Hello Clint,

    Currently, MB Elementor Integrator plugin doesn't support showing relationship data in the Elementor builder. You can try to use the relationship shortcode to see if it helps
    https://docs.metabox.io/extensions/mb-relationships/#shortcode

    I will inform the development team to consider supporting this feature in future updates.

Viewing 15 posts - 1,006 through 1,020 (of 3,839 total)