Forum Replies Created
-
AuthorPosts
-
May 18, 2018 at 11:54 AM in reply to: Set default value of field to another field already entered #9592
Anh Tran
KeymasterHello,
This can be done with custom JavaScript. Here is the pseudo-code:
First step: enqueue your JS file:
add_action( 'rwmb_enqueue_scripts', function() { wp_enqueue_script( 'your-js-id', 'url-to-your-js', ['jquery'], '', true ); } );And in your JS file:
jQuery(function(){ var $start = $( '#start_date' ), $end = $( '#end_date' ); $start.datepicker( { onSelect: function( dateText ) { $end.val( dateText ); } } ); });May 18, 2018 at 11:48 AM in reply to: ✅User Meta won't save when submitted through gravity forms #9591Anh Tran
KeymasterHello,
To make the plugins work together, the key for user meta fields must be exactly the same. I remember Gravity Forms automatically creates key for fields which includes some numbers (the number 7 in your screenshot). I'll check more with GF. In the meantime, can you check if you can change the key for fields? It must be case-sensitive.
Anh Tran
KeymasterStrange. Let me check the update system again. Thanks for letting me know.
Anh Tran
KeymasterHi, I've just fixed the bug in the version 1.1.3. Please update and let me know how it goes.
Anh Tran
KeymasterHi Jason,
Yes, it's on the roadmap. We faced a heavy workload in the past few months, so we couldn't work on this feature. I'll try to get back to this as soon as I can.
Anh Tran
KeymasterHello, I got what you meant. Let me debug it.
Anh Tran
KeymasterAnh Tran
KeymasterSorry, I've just updated the extension and Meta Box AIO. Please update them.
Thanks.
Anh Tran
KeymasterFYI, I've just completed the extension. Please get it here: https://metabox.io/plugins/mb-user-profile/
Anh Tran
KeymasterHello, can you give me the code to test? This seems to be a weird situation.
Anh Tran
KeymasterHello,
Is the field
image_advanced? Do you have any custom CSS that might affect that? It seems not to happen on my side.Anh Tran
KeymasterI faced some issues that took me so long to refactor the code. I promise to release this within 3 days. Please wait.
Anh Tran
KeymasterHello,
When the
timestampis set totrue, the date/datetime field will store values as an array in a group. This array contains 2 elements:timestamp: the Unix timestamptformatted: the formatted (user-entered) value
This is a difference between a single date/datetime field, which stores only
timestampvalue.So, when you get the value from this field, please check both values.
Here is the video that demonstrates how the data is saved:
Anh Tran
KeymasterHi, I've added your CPT "work" and it works. Here is the video:
Anh Tran
KeymasterI see. Can you try CSS approach, like this:
array( 'name' => 'Website Screenshot URL:', 'desc' => '', 'id' => $prefix . 'website_screenshot', 'type' => 'text', 'class' => 'hidden', ),And in the Customizer > CSS and add this:
.hidden { display: none; } -
AuthorPosts