Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 286 through 300 (of 3,702 total)
  • Author
    Posts
  • in reply to: No validation in Ajax front-end submission #18395
    Anh TranAnh Tran
    Keymaster

    Hi, thanks for your feedback. Basically, you should not use both the "required" checkbox in the builder (which uses browser validation) and the validation required rule (which uses a JS library to check). I'll check the error and submission and see if there's any bug with that.

    in reply to: How many clones #18394
    Anh TranAnh Tran
    Keymaster

    Hi James,

    I think you can do that by using JS to count the rwmb-clone elements. Or if you use PHP, you can get via count( $field_value ) (as the value of a cloneable field is an array).

    in reply to: You are not allowed to edit this post. #18393
    Anh TranAnh Tran
    Keymaster

    Hi boethius, you're right about the capability name. It should be edit_others_posts.

    The plugin checks if user can edit the current post with this code:

    current_user_can( 'edit_post', $post->ID )
    

    Can you please try a plugin like Members/User Roles Editor to make sure that roles can edit posts?

    in reply to: registration ? #18375
    Anh TranAnh Tran
    Keymaster

    Hi Kathrin,

    I'm afraid I'm not very clear about your question. Can you please provide more details?

    in reply to: Field conditional logic doesn't work with Gutenberg #18374
    Anh TranAnh Tran
    Keymaster

    Hi Yumikom,

    I see you set a condition to show a field based on post_type. Unfortunately, the plugin doesn't support that kind of condition. You can change the visibility of a field or a meta box based on a value of another field or another input.

    Anh TranAnh Tran
    Keymaster

    Hi,

    Thanks for the clarification. I think it can be done with custom JS code. Basically, you need to listen for changes in inputs and enable/disable the readonly attribute of fields.

    in reply to: Invoice #18372
    Anh TranAnh Tran
    Keymaster

    HI Nicola,

    The VAT amount is automatically collected by the payment gateway (Gumroad in this case).

    Can you please send me the total amount, so I can generate an invoice for you?

    in reply to: MB Relationships - Connection Metadata? #18355
    Anh TranAnh Tran
    Keymaster

    Hi rfors,

    Thanks for your message. Unfortunately, we haven't finished this feature yet. We'll let you know when it's done.

    in reply to: image_upload field select files not working on iphone #18354
    Anh TranAnh Tran
    Keymaster

    Hi, let us check that. Thanks for reporting.

    in reply to: Inline buttons #18353
    Anh TranAnh Tran
    Keymaster

    Hi Calpaq,

    There's an action rwmb_frontend_after_submit_button that you can use to output your custom button. It's still after the wrapper div, but I think you can make it inline with CSS.

    in reply to: Export / Import #18352
    Anh TranAnh Tran
    Keymaster

    Hi,

    Previously, we use serialized data to store the data (just like WP do for all the options and post/term/user meta). So we use the .dat extension, which simply means "data". You can convert the data between PHP/.dat easily using serialize/unserialize functions. There's no difference between that and json_encode/json_decode.

    in reply to: Duplicated relationships on version 1.8.1 #18338
    Anh TranAnh Tran
    Keymaster

    Hi, thanks for your feedback. I've just fixed it and released a new version.

    Anh TranAnh Tran
    Keymaster

    Hi Hywel,

    It should be placed inside the rwmb_meta_boxes filter, just before your meta box registration code, like this:

    add_filter( 'rwmb_meta_boxes', function( $meta_boxes ) {
        $include = [];
        if ( $_GET['post'] ) { // Edit a post
            $post_id = $_GET['post'];
            $user_id = get_post_meta( $post_id, 'user_id', true );
            $include[] = $user_id;
        }
    
        $meta_boxes = [
            'title' => 'Test',
            ...
            'fields' => [
                [
                    'name' => 'Member',
                    ...
                    'query_args' => [
                        'include' => $include,
                        ..
                    ]
                ],
            ],
        ];
    } );
    Anh TranAnh Tran
    Keymaster

    Oh! Thanks a lot for your feedback. I'll fix it now.

    Anh TranAnh Tran
    Keymaster

    Hi,

    Do you have featured image enable for that post type? If yes, then maybe there are 2 fields with the same ID and the default featured image might override the Meta Box field.

Viewing 15 posts - 286 through 300 (of 3,702 total)