Forum Replies Created
-
AuthorPosts
-
December 31, 2024 at 4:41 PM in reply to: โ unserialize(): Error - When using custom admin column #47274
Codog
ParticipantHi Peter,
thanks for your response. However, in my context I cannot use another field type such as thesingle_imageas this provides access to the media library popup. Myfile_uploadfield is part of a frontend submission form that MUST prevent my users from accessing the media library.Are there any other work arounds or options to fix this error?
Thanks!
November 8, 2024 at 8:39 PM in reply to: โ Metabox Group - Adjust 'Remove Clone' Dialog Notification Message #46895Codog
ParticipantHi Anh,
thats great news. Thanks for letting me know! Where will this new functionality be documented?Thanks ๐
Codog
ParticipantHi Peter,
thanks for letting me know. Look forward to the fix ๐September 13, 2024 at 3:46 PM in reply to: โ Metabox 5.10.0 / Metabox AIO 1.30.0 - Max_clone - Issue #46443Codog
ParticipantHi Peter,
the recent update appears to have resolved my highlighted issues. Thanks!However, there are now new ones...
Issue - https://support.metabox.io/topic/broken-mb-conditional-logic-meta-box-group/
September 8, 2024 at 3:48 PM in reply to: โ Metabox 5.10.0 / Metabox AIO 1.30.0 - Max_clone - Issue #46367Codog
ParticipantHi Peter,
has the 5.10.1 and 1.30.1 updates resolved the highlighted issues? I have not had a chance to test yet.September 1, 2024 at 4:58 PM in reply to: โ Metabox 5.10.0 / Metabox AIO 1.30.0 - Max_clone - Issue #46305Codog
ParticipantHi Peter,
that is good to know. Any likely future release date when these will be fixed?Thanks ๐
August 22, 2024 at 5:03 PM in reply to: โ Metabox 5.10.0 / Metabox AIO 1.30.0 - Max_clone - Issue #46202Codog
Participant....further to the above I have also spotted an additional issue.
I am also using the MB Group inside a MB Frontend Submission form.
When using the NEW
'clone_empty_start' => true,attribute within the MB Group settings any sub-field within the group which has the'required' => true,attribute set gets an error validation BEFORE a clone has even been added/created? This prevents my MB Frontend Submission form from being successfully submitted!The Required Fix
=================
Sub-fields within an MB Group that have the'required' => true,attribute set should NOT be validated until a NEW clone has been added/created.Steps to Reproduce
===================1) Create a MB Group with sub-fields.
2) Within the MB Group settings use the'clone_empty_start' => true,attribute.
3) Within the first sub-field in the MB Group set the'required' => true,attribute.
4) Fill out ALL fields within an MB Frontend Submission Form (So there are no other errors) but DO NOT add a MB Group Clone.
5) Attempt to submit the form and you will see that it is not possible and the "Please correct the errors highlighted below and try again." error message is shown.
6) Then add a new MB Group Clone - You will see that the first sub-field is highlighted RED and throwing an error validation?Again, I assume this is a bug that will be rectified shortly?
I look forward to the fix ๐
Codog
ParticipantI am also experiencing an issue with MB Group clones after the upgrade to 5.10.0. See thread here - https://support.metabox.io/topic/metabox-5-10-0-metabox-aio-1-30-0-max_clone-issue/. They could be related issues?
Codog
ParticipantHi Peter, thanks for the response. Yeah this was the bit I was unclear about? I assume you mean adding this:
'geo' => [ 'api_key' => 'xxxxxxxxxxxxxxxxxxxxxxx', ],To some field group? Do you mean I need to wrap my "Map Field, Address Field , Hidden field" in a "Field Group and add the above? Not clear to me?
As I am strictly doing this with code I would be grateful if you could show me a simple example?
June 27, 2024 at 8:37 PM in reply to: โ Metabox Group - Adjust 'Remove Clone' Dialog Notification Message #45745Codog
ParticipantHi Peter, thanks for the response. It's not a deal breaker but it would be a simple nice addition to the Metabox Group functionality.
Codog
ParticipantThanks Peter, understood. Custom JS solution it is!
May 8, 2024 at 5:36 PM in reply to: โ Open Street Map inside Ajax Generated Bootstrap Modal - Displays Empty Container #45402Codog
ParticipantHi Peter,
thanks! Thought this was likely the case but wanted to check first. Thanks for your time ๐April 4, 2024 at 2:20 AM in reply to: How to target a specific index of cloned fields with Metabox Group #45131Codog
ParticipantHi Peter,
thanks for your guidance ๐ Unfortunately your suggested method is not working for me right now? I tried a very simple implementation to see if I can target and output a simple message and update thehidden_fieldvalue within an individual clone.My test function:
==================function output_to_clone(){ $post_id = $_GET['rwmb_frontend_field_post_id']; $group_values = get_post_meta($post_id, 'group_id', true); $msg = ''; foreach ( $group_values as $group_key => $group_value ) { if ( $group_key == 1 ) { $group_value[1]['hidden_field'] = 'Something New'; $msg .= '<div class="alert alert-danger" role="alert">Group Key = '.$group_key.'</div>'; } else { $msg .= ''; } } return $msg; }Function output
================Then within the cloneable group fields I just added the function call:
[ 'id' => 'group_id', 'add_button' => __( 'Add more', 'text-domain' ), 'type' => 'group', 'clone' => true, 'sort_clone' => true, 'group_title' => 'Title {#}', 'collapsible' => true, 'save_state' => true, 'max_clone' => 3, 'fields' => [ [ 'id' => 'hidden_field', 'type' => 'hidden', 'std' => 'Hidden Value', ], [ 'before' => output_to_clone(), // Function output 'name' => __( 'Field One', 'text-domain' ), 'desc' => __( 'Add a unique name.', 'text-domain' ), 'id' => 'field_one', 'type' => 'text', ], [ 'name' => __( 'Field Two', 'text-domain' ), 'desc' => __( 'Enter a unique reference.', 'text-domain' ), 'id' => 'field_two', 'type' => 'text', 'required' => true, ], ], ],Expected Test Outcome
=======================1) The
$group_key == 1conditional check would output the$msgvalue for the individual clone that matches the key. All other clones would return an empty$msg.
2) The$group_key == 1-hidden_fieldwould be updated to "Something New".Actual Test Outcome
=======================1) The
$group_key == 1conditional check outputs the same$msgvalue for ALL cloned fields (IE: Group Key = 1).
2) The$group_key == 1-hidden_fieldvalue is NOT updated.I am obviously misunderstanding something here? Can you help me understand where I am going wrong? Thanks in advance ๐
March 27, 2024 at 9:39 PM in reply to: Validation Bug with Cloned Items - Metabox Group + Frontend Form #45038Codog
ParticipantHi Peter,
thanks for escalating.I look forward to the fix!
Codog
ParticipantI would really like this feature too!
-
AuthorPosts