• Resolved milaconsulting

    (@milaconsulting)


    I’ve added the following plugin code on the webpage provided, which works fine in desktop mode, but NOT on mobile nor tablet… what can I do to make this work? (the code is also present on both mobile & tablet)

    <center><strong>PLEASE PROVIDE YOUR DETAILS TO REGISTER  </strong></center>
    <div id="ribbon-lead-form"></div>
    <script
        async
        type="module"
        host_id="34056"
        fields="firstName,lastName,email,phoneNumber,City,InterestsInfoS"
        token="xxxxx"
        country_code="nz"
        source_id="xxxx"
        data-field-def='{"firstName":{"type":"text","label":"First name","required":true},"lastName":{"type":"text","label":"Last name","required":true},"email":{"type":"email","label":"Email","required":true},"phoneNumber":{"type":"phone-number","label":"Phone number","required":true},"City":{"type":"text","label":"City","required":true},"InterestsInfoS":{"type":"text","label":"What are you most interested in to find out more about?","required":true}}'
        data-on-success-msg="Thank you for your registration – you will now receive an email with the Zoom details! "
        src="https://momence.com/plugin/lead-form/lead-form.js"
    ></script>
    
    <style>
    :root {
        --momenceColorBackground: #FBFBFB;
        --momenceColorPrimary: 245, 168, 0;
        --momenceColorBlack: 3, 1, 13;
    }
    </style>

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • threadi

    (@threadi)

    It doesn’t work for me on desktop either, I don’t see a form there – I think a form should be visible, right?

    But I see a lot of JavaScript errors when I call up your page. These could prevent this code from being executed. I think they are caused by an integrated Facebook-based chat. Unfortunately, I can’t see where this is coming from.

    You have activated WP Rocket. Deactivate this optimisation plugin to rule it out as the cause of all this. If it works without WP Rocket, contact their support to clarify the problem.

    Thread Starter milaconsulting

    (@milaconsulting)

    Thanks for your quick reply… It works for me on Safari desktop, but having it now tested on Chrome and Edge; they both do not work… and obviously it doesn’t work on mobile at all….

    I’ve deactivated the Facebook Messenger plugin, and about to deactivate Rocket…

    Thread Starter milaconsulting

    (@milaconsulting)

    .. and what is really strange.. is that it works on the following webpage on desktop Edge, Chrome, Safari, as well as mobile: https://polestarpilates.co.nz/polestar-pilates-tell-us-about-yourself-survey/

    threadi

    (@threadi)

    I don’t see any JavaScript errors on this page, so I guess it works there. As I said, the other page has JavaScript errors that could be causing the problem.

    Thread Starter milaconsulting

    (@milaconsulting)

    Thanks again for your reply – and you are so right! It’s all sorted now: Rocket Cache was minifying that script and that was causing the issue. So it’s excluded now and all seems fine. ??

    Glad that’s been sorted, @milaconsulting! Moving forward though, and to avoid confusion for other folks, please be aware that this particular forum is for the WordPress mobile app (iOS,?Android). You can check out the forum guidelines here.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Plugin code not working on mobile’ is closed to new replies.