Forum Replies Created
-
AuthorPosts
-
Peter
ModeratorHello Jack,
I see the conditional logic does not work from the second cloneable group field "Data Table". If I set the sub-group field "Table Rows" to not cloneable then the conditional logic works properly.
Can you please confirm this?
Peter
ModeratorHello,
Does the returned data from API have the format
'value' => 'Label'like the static data? Also, the value should be in lowercase, with no special characters. Read more in the documentation https://docs.metabox.io/fields/autocomplete/#settingsPeter
ModeratorHello,
You can create a
textfield (top field, not a subfield in a group) for the user with the field iduser_id> enable admin column for this field > edit a user > just click on Update user.
Then you will see the user ID field value displayed in the admin column (user management page).Peter
ModeratorHello,
Thanks for your feedback.
I've escalated this issue to the development team to fix it in the next update.
October 10, 2023 at 9:34 PM in reply to: How to sum the point fields of all arrays, theme php code #43488Peter
ModeratorHello,
You can use two PHP functions array_push() and array_sum() to sum the number field value in a cloneable group. For example:
$groups = rwmb_meta( 'group_point', [ 'object_type' => 'user' ], get_current_user_id() ); $total_points = []; foreach ( $groups as $key => $group ) { // Field number_point: array_push( $total_points, $group[ 'number_point' ] ); } echo array_sum( $total_points );October 10, 2023 at 9:11 PM in reply to: ✅From user to post not handling more that 10 connections #43487Peter
ModeratorHello,
You can use the option "Query args" in the builder to add the
numberquery args, screenshot https://monosnap.com/file/Krlq1sXWeCb0Xz3XPq9GjewcPXF237Read more in the documentation https://docs.metabox.io/extensions/mb-relationships/#using-meta-box-builder
Peter
ModeratorHello there,
Please check if some fields in the error message are available on your site or are in a group field: single_image_s62x74iq9cr, text_zz4zq41myna
Peter
ModeratorHello,
You can use the PHP code to check if the query var
rwmb_frontend_field_post_idis available and output a custom CSS code to hide the submit button. For example:add_action( 'rwmb_frontend_before_submit_button', function() { if( isset( $_GET['rwmb_frontend_field_post_id'] ) ) { ?> <style type="text/css"> .mbfs-form .rwmb-form-submit { display: none; } </style> <?php } });October 9, 2023 at 9:55 PM in reply to: ✅content of text fields fields disappears, can't edit custom fields #43470Peter
ModeratorHello,
1. You can check the option "Save field value" if it is disabled. If yes, please enable it and recheck this issue. See this screenshot https://monosnap.com/file/boUvSTyR4Kmm5Ls0wmDiELKehY7Lkb
2. You can click on the white-space area to collapse/reveal each field. Hovering over each element will display the description when you click on it. Screenshot
https://monosnap.com/file/SQ3QMIVocN7AYJxV1KJ7osQzA42noxOctober 9, 2023 at 9:34 PM in reply to: ✅differentiate type=text and type=taxonomy when using the same id #43469Peter
ModeratorHello,
If you have two fields with the same IDs on one editing page, the second field value will be saved and the first one will display the value of the second field. It is expected and we've also noted in the documentation https://docs.metabox.io/field-settings/
ID id Field ID. Required and must be unique.
You should have different field IDs for text and taxonomy fields.
October 9, 2023 at 6:42 PM in reply to: ✅pattern validation for all small text, smalltext with prefix #43466Peter
ModeratorHello,
You can refer to this topic to get the pattern to validate the domain input.
https://stackoverflow.com/questions/58070841/pattern-in-html5-input-type-url-validationPeter
ModeratorHello,
I run your code on the local host and see the new field value is added to the database as well. If you want to display the field, please create a new field in the field group with the same ID.
October 9, 2023 at 6:17 PM in reply to: Generate a custom field as add of two other text custom fields and times #43464Peter
ModeratorHello,
You can use the action hook
rwmb_after_save_postorrwmb_after_save_fieldto update a field value after saving. Refer to the examples in the documentation
https://docs.metabox.io/actions/rwmb-after-save-post/
https://docs.metabox.io/actions/rwmb-after-save-field/October 7, 2023 at 3:33 PM in reply to: Linking Two Custom Post Types in select/dropdown field #43450Peter
ModeratorHello,
If you want to create a custom field in the builder, please follow the documentation https://docs.metabox.io/extensions/meta-box-builder/#adding-your-own-field-types
Note: we do not support the custom code for your specific needs. We support a customization service with an extra fee. Please contact us here for more information https://metabox.io/contact/
Peter
ModeratorHello,
As you can see in the screenshot, the Type and Location of the View is set to Archive page - Evento Archive, then this View only works on that archive page.
If you want to create a View that can be used on any page, please select the Type: Shortcode.
-
AuthorPosts