Forum Replies Created
-
AuthorPosts
-
September 17, 2020 at 11:24 PM in reply to: โ Helper function only returning single result from checkbox list #21926
wgstjf
ParticipantHi Long, not sure if I didn't explain it properly.
The issue is that I am NOT getting an array but instead a single value. I am expecting an array containing both values (in this example) but not getting one...
Any thoughts?
Will
wgstjf
ParticipantThanks Long,
As previously mentioned, some of my meta boxes contain custom functions that require queries to run on the database. In the example below a custom function gets all users and formats them as required for a select_advanced metabox. As these metaboxes are only required in the admin area it would seem sensible for the filter rwmb_meta_boxes to only run if in admin area, unless there are downsides to this...
// SELECT - Related User Account array( 'name' => __( 'Related User Account', 'indigo-metaboxes' ), 'desc' => __( 'Choose the user account related to this member', 'indigo-metaboxes' ), 'id' => 'member_user_id', 'type' => 'select_advanced', 'options' => indigo_get_member_users(null,1), 'placeholder' => 'Choose user...', 'columns' => '3', ),Cheers,
Will
wgstjf
ParticipantThanks for the heads up - worked perfectly ๐
wgstjf
ParticipantLong,
Thanks for coming back to me. It is now working as desired using the following:
$rwmb_storage_method = new MBSP\Storage; $increment_next_member_number = $rwmb_storage_method->update('indigo_membership_settings','member_number_next',$next_member_number_incremented);Very much appreciated.
Will
wgstjf
ParticipantThanks Long, standing by.
Cheers,
Will
wgstjf
ParticipantLong,
Did this issue get resolved in the latest version of Meta Box?
Cheers,
WIll
wgstjf
ParticipantThanks for getting back to me so quickly. You are absolutely right about the visible required fields, it seems to be the upload type files (using hidden inputs) that have the problem. Standing by for the update so that we can restore this essential functionality.
Thanks again.
Will
wgstjf
ParticipantI've just looked into this further an I think there is another issue. We have a plugin that makes sure that image_advanced fields that have the 'required' attribute (and are visible) require the user to select an image.
I believe a recent update (5.2.8) has modified the validation scripts to remove validation for hidden fields (from changelog - Fix validation rules still applied for hidden fields). This now means that image_advanced fields (and similar) will never be validated as their relevant INPUT field (for the image_id in this case) is a hidden field. Can you modify the way your recent update works so that it does not target media fields such as image, file, video etc?
Cheers,
Will
wgstjf
ParticipantGreat news and you too.
wgstjf
ParticipantAnh,
Jumping in on this if I may...
Seriously interested in this as well. We've tried a few times to extend the capabilities of Custom Table to work with our own content types created using WP_List_Table but, although we've got close, we've never got this working well.
It would be absolutely amazing to be able to use the endless benefits of Meta Box with the benefits of truly independent custom tables. Please, please do add this functionality as soon as you can. Numerous projects we have on (and upcoming) would all benefit.
Cheers and stay safe,
Will
wgstjf
ParticipantThanks Long, that's great. I hope you can fit this in asap so that we can use it on our current client project.
Cheers,
Will
wgstjf
ParticipantNo problem and thanks for the quick update.
wgstjf
ParticipantWonderful, thanks.
wgstjf
ParticipantThanks for the explanation Anh and the suggestion of the custom callbacks.
wgstjf
ParticipantWas just about to update my post on this topic to reflect the progress we've made. Good to se you've found it already and good luck with your tests.
Cheers,
Will
-
AuthorPosts