Hiding fields not working
-
Hi,
Really liking the plugin so far.
I’m having some trouble with hiding the field “Team/Club Name” when “Team/Club?” is set to “No”.
It works fine in the preview but not when viewed when placed in a post or page.
Does anyone have any suggestions please?
-
This topic was modified 5 years, 5 months ago by
lionschris.
The page I need help with: [log in to see the link]
-
This topic was modified 5 years, 5 months ago by
-
Hi @lionschris,
I checked your site and there are some JS errors poping up in browser console which will stop Forminator scripts from working properly.
This is usually a sign of a conflict with another plugin or theme so could you please perform a conflict test by disabling your other plugins and switch to default theme to see if it works fine after that.
If it does, activate them back one by one until you see which one is causing the issue.
This will tell us where the problem is so we can check what can be done further about it.I strongly suggest doing this test on a staging site, or have a full backup ready before performing the test to stay on the safe side.
Cheers,
PredragHi,
Thanks for getting back to me so quickly.
I did as you suggested and disabled all plugins re-enabling one at a time.
The plugin that seems to be braking the form is WooCommerce PayPal Checkout Gateway
Which is surprising, I would have thought that with how popular WooCommerce is that someone else would have come across this before…
Any further help with getting both to coincide happily will be most appreciated.
Thanks.
Hello @lionschris ,
I trust you’re doing well!
I’ve tested both plugins on my end and could not replicate this issue. Perhaps some certain settings sare causing it. Would you please export the form from the Setting icon. Please see the screenshot:
https://take.ms/Jn8U0Upload the file to Google Drive or a DropBox and share a link with us.
Looking forward to your reply.
Kind regards,
NastiaHi,
Thanks for getting back to me.
I have exported the form as requested and you can download it from the following link.
https://send.sporedrive.co.uk/download.php?id=3&token=W5yiRf3N891B41xklz9KkUF0CsCJmMdh
I have setup a test/staging site where this problem also exists.
https://staging.merseaislandlionsclub.com/wpshop/2020-standard-online-race-entry/
I can arrange access to the site should you need it?Thanks
Hello @lionschris ,
I have tested your form on my site with the culprit plugin and I wasn’t able to replicate this issue.
Just to be sure, is your WordPress, Woo and WooCommerce PayPal Checkout Gateway updated to the latest versions?kind regards,
KasiaHi the versions we are using are listed below.
Wordpress – 5.2.3–en_GB
WooCommerece – 3.7.0
Woo PayPal Checkout – 1.6.17
Forminator – 1.9.1There are no updates pending on the site.
I have just tried removing the PayPal field on the form and the rest of the form started working as expected, when added back the form broke again.
So it seems to be a conflict on the PayPal side of things.
Hi,
I’ve done some more testing and it seems that it is a combination of the Woo PayPal Checkout plugin and the Storefront theme that breaks Forminator. If I disable the paypal plugin or change the theme it works just not with both of them together.
This is fine for me as I am happy to change the theme to restore functionality but there may still be people out there that have to use both of those items together.
Appreciate the update on this @lionschris ??
I’m sure that other members will find it useful indeed.
As I was still unable to replicate with Storefront plugin, if your staging site is still available, please send me an email to [email protected] using this template:
Subject: “Attn: Dimitris”
Message: link back to this thread for reference
Keep in mind the subject line as ensures that it gets assigned to me.
Warm regards,
DimitrisHi Dimitris,
Thanks for getting back to me.
I have e-mailed the requested details.
Hello @lionschris
We’ve been able to replicate the issue. It does require both PayPal payment plugin and Storefront theme to be active to be reproduced.
I did some further “digging” and disabling the “Use Smart Payment Buttons” option in the WooCommerce PayPal Checkout Gateway plugin seems to be solving it. Could you, please, give it a try on your end and confirm if ti works for you?
I’ve also already reported it to our developers so they’d check if there’s anything we could do on our end to fix that with future releases.
Best regards,
AdamHi Adam,
Thanks for the update.
I can confirm that disabling the smart payment button does resolve the issue.
It may be worth mentioning to the developers that I get the following warning now with the button disabled.
PayPal Checkout with new Smart Payment Buttons? gives your customers the power to pay the way they want without leaving your site.
The existing buttons will be deprecated and removed in future releases. Upgrade to Smart Payment Buttons in the PayPal Checkout settings.
So it looks like disabling the smart button will not be an option in the future and may leave people stuck that are unable to change themes like I have.
Regards,
Chris
HI @lionschris
Thanks for confirmation!
Yes, that might have some disadvantages in the long run, I agree. I hope though that our developers will be able to find solution to this conflict as I’ve already reported it to them.
Thank you for this additional information though, it’s very helpful!
Kind regards,
AdamHi @lionschris
I just got an update for you ?? You might try adding following code to the site as MU plugin:
<?php add_action( 'wp_footer', function() { $forminator_paypal = false; $wp_scripts = wp_scripts(); if ( isset( $wp_scripts->registered ) && is_array( $wp_scripts->registered ) ) { foreach( $wp_scripts->registered as $handle => $data ) { if ( 0 === strpos( $handle, 'forminator-paypal-' ) ) { $forminator_paypal = true; break; } } } if ( $forminator_paypal && wp_script_is( 'paypal-checkout-js' ) ) { wp_deregister_script( 'paypal-checkout-js' ); } }, -10 );
I’ve just tested it and it seems to work fine so Smart Buttons can also be used. Note though: our developers checked that and it seems that it’s actually the WooCommerce PayPal Checkout Gateway plugin that’s causing conflict that results in some JS error and not the Forminator so ultimately a “permanent fix” would have to be implemented by that plugin developers.
Above “tweak” code should work fine, though.
Best regards,
Adam
- The topic ‘Hiding fields not working’ is closed to new replies.