Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterHi Thomas,
Regarding MB Builder, I've answered in this topic.
Regarding MB Settings Page, this plugin doesn't have any menu. You need to use some custom code to create the settings pages for yourself. Please follow the documentation on how to do that.
September 18, 2018 at 5:40 PM in reply to: ✅After installing MB Builder, nothing shows on Dashboard #11379Anh Tran
KeymasterHi Thomas,
Did you activate the Meta Box plugin first? MB Builder requires Meta Box to work. When it's activated, the "Meta Box" menu will appear below the Settings menu. And it has a sub-menu called "Custom Fields", that's the MB Builder's menu.
PS: The old "Meta Boxes" menu was removed and changed to "Custom Fields" sub-menu.
September 18, 2018 at 5:38 PM in reply to: ✅Disable (delete) fields that are hidden conditionally? #11378Anh Tran
KeymasterHi again,
We've just added the trigger
cl_hidefor inputs when they're hid. Now you can use the snippet I posted above. Please update.Anh Tran
KeymasterMap saves data as
latitude, longitude[, zoom], so it should be just text, e.g.TEXT NOT NULL.Anh Tran
KeymasterI've just tried your code and it works without any bug shown. Does that happen for new posts? or old posts? Or you always see that bug no matter which page you're on?
Anh Tran
KeymasterHi KwangGan,
I've just tried your code and I can't replicate the bug. Here is my video:
Can you please check again?
PS: I found a small bug in your code: the group title should be defined like this:
'group_title' => array ( 'field' => '_product_file_man_name' )e.g., do not miss the
fieldkey.Anh Tran
KeymasterHi, can you post the code of your meta box? It might has some error when you declaring the fields.
Anh Tran
KeymasterHello,
This is a really good idea! I've updated the extension to support showing label instead of value for choice fields (checkbox list, radio, select and select advanced). Please update.
Anh Tran
KeymasterHi,
Can you show your code? The function
format_single_valuedoesn't have any relation tomultiple. Maybe it comes from theformat_clone_valuefrominc/field.phpfile, where it checks if the field has multiple values.Anh Tran
KeymasterHi Hazmi,
Can you please check again? I've just tested on my localhost and the
stdvalue is not saved, no matter the value is, when thedisabledattribute is set totrue.Here is my video:
Anh Tran
KeymasterHi Hazmi,
When you set a field
disabled, its value won't be submitted. Thus, there's no value saved. Please see this answer on Stack Overflow for more info.Anh Tran
KeymasterHi,
Thanks for your feedback. I've checked the plugin and found a bug from the previous version that prevents the fields showing in the comparison screen. I've just pushed a fix to the plugin. Please update it.
Thanks,
AnhAnh Tran
KeymasterHello guys,
Finally, I got something that works:
Please checkout the select2-ajax branch and see the demo file here.
September 11, 2018 at 11:38 AM in reply to: ✅Programmatically modify field value prior to displaying in admin? #11311Anh Tran
KeymasterHi Denny,
The code should be like this:
add_filter( 'rwmb_site_name_field_meta', 'your_filter_function', 10, 3 ); function your_filter_function( $meta, $field, $saved ) { return 'Title here'; }or
add_filter( 'rwmb_field_meta', 'your_filter_function', 10, 3 ); function your_filter_function( $meta, $field, $saved ) { if ( 'site_name' != $field['id'] ) { return $meta; } return 'Title here'; }September 11, 2018 at 9:18 AM in reply to: ✅Programmatically modify field value prior to displaying in admin? #11306Anh Tran
KeymasterHi Denny,
Looks like it can be done with
rwmb_field_metafilter (https://docs.metabox.io/filters/#rwmb_field_meta). This filter changes the value before showing to users, e.g. it changes the value get from the database. It might be what you want.Cheers,
Anh -
AuthorPosts