Forum Replies Created
-
AuthorPosts
-
P.
ParticipantHello guys, will the issue be addressed at all, or we should seek another solution?
P.
ParticipantHi, any chance this issue can be solved soon?
P.
ParticipantThank you.
I forgot to mention I use the WYSIWYG field, with'raw' => true, 'options' => [ 'wpautop' => false, ]But I tested with with disabling
rawoption as well.Anyway, custom WB shortcode for now solved the issue.
P.
ParticipantI couldn't make this work. I am showing the
{{ post.content }}in a view.However, I made a shortcode with something like:
global $post; $content = apply_filters( 'the_content', get_the_content( $post->ID ) ); return $content;following comments on this page and it works, the
[embed]shortcode renders on the page.P.
ParticipantPagination would be very handy. Refreshing view of hundreds of posts takes time.
Any tips on including custom pagination would be welcomed.P.
ParticipantTo add context, the Select Advanced field has
'multiple' => trueand is included within Tab.I have also checked another field that accepts only single values and is not included in a Tab, and then the dropdown is displaying correctly below, but the issue still exists when the dropdown appears above the selection container.
P.
ParticipantThanks, hopefully this can be fixed.
Indeed Chrome seems to handle form submission with fewer problems than Brave and Firefox, according to the users of my website who were testing it in this browser, but Brave and Firefox also show differences in this matter.
Looking forward to hearing from you.
P.
ParticipantNow, the problem seems to be with the callback to the ajax request.
I have the following callback function set in
'remote' => admin_url( 'admin-ajax.php?action=test_request' ):function test_function() { $title = $_GET['post_title']; if ( 65 >= mb_strlen( $title, 'UTF-8' ) ) { echo 'true'; } else { echo 'false'; } die; } add_action( 'wp_ajax_test_request', 'test_function' );Testing it in Firefox gives the following results:
1. When I edit the post and click on Save without clicking inside any text fields the form submission doesn't trigger.
2. When I edit the post and before I click Save I click inside the title field (this field undergoes above validation), the form triggers submission. The title's validation works upon clicking inside the filed as expected (if the title is longer than 65 characters the validation fails, otherwise, the field is valid and the error message disappears).If you still prefer to have the code I use to create the metabox, can we share it securely?
P.
ParticipantDigging deeper and I could narrow down the issue reason to the
remoteparameter of theruleskey.Next, different browsers behave different way, depending on how many rules within
validationkey haveremoteparameter set up:1. In Brave: When I have only single field with
validation>rules>field_name>remoteset to something like'remote' => admin_url( 'admin-ajax.php?action=h29dk' )the form works. However, adding second remote rule for another field (with different action name) causes the issue with the form submission. Two rules, one with remote parameter and one without, don't cause the issue.2. Firefox: The issue exists already with only single rule with
remoteparameter.Would be grateful for further tips on how this could be fixed in order to keep remote validation.
P.
ParticipantOkay, I think I have found the reason why the form submission isn't triggered as expected.
It's thevalidationpart of themeta_boxesarray. Removingvalidationkey restored normal form submission. I haven't yet made any further tests, but at least there's a starting point, and maybe it might help you pointing out a solution? I will carry on checking it anyway.P.
ParticipantI tried to disable other plugins and switch to default theme, but no change.
I also checked for any errors on form submission, but receiving no errors.
Currently I use tabs to preset fields, I tried to check for issues with tabs disabled, but still the problem exists.P.
ParticipantHi, I am not able to share the website, which is offline.
I create the form with:
[mb_frontend_form id="field_group_1,field_group_2,field_group_3" edit="true" post_fields="" post_type="custom_post_type" submit_button="Save"]Then each field group is made with
rwmb_meta_boxesfilter.I noticed the issue exists when I edit existing post. Empty form triggers submission without the issue.
P.
ParticipantHi Peter,
I thought there would be different way, but okay, thank you for the suggestion.
P.
ParticipantHi,
The website is unfortunately offline. I create one form with the following shortcodes:[mb_user_profile_info id="user_profile"]and[mb_user_profile_info id="rwmb-user-info"].Here is one screenshot.
P.
ParticipantThe website is unfortunately being developed offline. But the issue is fixed if I disable wptexturize() function. This is okay for me, I don't need it.
-
AuthorPosts