Custom Fields
Re-Envisioned
Support MB Frontend Submission Front-End Form Conditional Display Not Working

  • Creator
    Topic
  • #19410
    Resolved swartjie
    Participant

    Hey 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:604

    How 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?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Author
    Replies
  • #19428
    swartjie
    Participant

    So 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?

    #19437
    Long Nguyen
    Moderator

    Hi,

    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.

    #19439
    swartjie
    Participant

    Yes it is… What can I do?

    #19443
    Long Nguyen
    Moderator

    Hi,

    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/98d4a25075cc4fe5922dc7af59766dc4

    #19458
    swartjie
    Participant

    Hey 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 🙂

    #19467
    Long Nguyen
    Moderator

    Hi,

    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/

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
grid gear info copy caret-up caret-down trash