Front-End Form Conditional Display Not Working
Support › MB Frontend Submission › Front-End Form Conditional Display Not WorkingResolved
- This topic has 6 replies, 2 voices, and was last updated 5 years, 7 months ago by
Long Nguyen.
-
AuthorPosts
-
May 1, 2020 at 8:25 PM #19410
swartjie
ParticipantHey GUys,
I have a front end form using MetaBox which has conditional logic to display and hide fields.
It works perfectly untill I activate Oxygen theme, I then get an error:Uncaught ReferenceError: wp is not defined
at conditional-logic.js?ver=1.5:604
(anonymous) @ conditional-logic.js?ver=1.5:604How can we go about finding a fix for this issue?
I spoke to oxygen they won't be fixinig it anytime soon from their end, so I assume there's got to be something we can do from our end since it's just a JS conflict?May 2, 2020 at 8:58 PM #19428swartjie
ParticipantSo i've done a bit of digging and testing to try and find the fault...
It looks like a bug that pops up when oxygen is used...Basically wp is not defined by the time this js is called?
Please do let me know if I can do anything to help with debugging to find the problem and patch it?
May 4, 2020 at 9:39 AM #19437Long Nguyen
ModeratorHi,
Solving a problem happens because of the conflict between the JavaScript code of the extension and the theme is so complicated. Is the theme Oxygen? I can help you to create a code to dequeue the script of the theme to run the Frontend Submission on a specific page.
May 4, 2020 at 11:37 AM #19439swartjie
ParticipantYes it is... What can I do?
May 4, 2020 at 3:59 PM #19443Long Nguyen
ModeratorHi,
I'm using the theme Oxygen and create a Frontend Submission form with the conditional logic but not see the problem. Please try to update the latest version of MB Frontend Submission to v2.2.1 or MB AIO to v1.11.6 then recheck the problem.
I've also made a short screen record when using the Frontend Submission and this theme
https://www.loom.com/share/98d4a25075cc4fe5922dc7af59766dc4May 5, 2020 at 4:56 AM #19458swartjie
ParticipantHey bud,
Our versions are all up to date... they were already up to date to these versions before I opened the ticket...
I can arrange access for you to have a look on our system to see it live 🙂May 5, 2020 at 9:36 AM #19467Long Nguyen
ModeratorHi,
Please try to create a staging (clone) of your site then send the information of the staging site to our team via https://metabox.io/contact/. We will take a closer look and give a quick response.
Here is a useful guide to create a staging site
https://www.wpbeginner.com/wp-tutorials/how-to-create-staging-environment-for-a-wordpress-site/
or this plugin
https://wordpress.org/plugins/wp-staging/ -
AuthorPosts
- You must be logged in to reply to this topic.