Wix embedded form is not submitting or redirecting to PayPal

  • queenjesslee
    Asked on April 29, 2016 at 6:33 PM

    Still having trouble with jotform submit button not linking to paypal on wix, it is still remaining on wait. I actually re-did the whole page and that atleast helped it work on jotform. It works on jotform but not on wix. I tried every way of copying code from embed via iframe and also embedding a form to Wix. I am going bat crazy. Could it be that I replaced the name, address areas and those parts need to be directly connected with submit? Please help. 

    The wix website is : http://queenjesslee.wix.com/fair

  • queenjesslee
    Replied on April 29, 2016 at 6:35 PM

    Oh btw, it's under the form is under the vendor registration. 

  • Boris
    Replied on April 29, 2016 at 9:44 PM

    I have checked the vendor registration form on your website, and I see that the form embedded there is form 61193830709155. Whenever you try to submit the embedded form, you are presented with the error like the following:

    Wix embedded form is not submitting or redirecting to PayPal Image 1 Screenshot 30

    The error itself tells us that our form (JotForm) did not have sufficient privileges granted by the website where it was embedded (Wix), so our form could not work correctly.

    When you access your form over its direct link, however, it submits correctly because our form then runs with regular (unrestricted) privileges as any other webpage or form does. So you can submit the form over the following link without any issues: https://form.jotform.com/61193830709155

    The cause of the reduced privileges for our form is the built-in security feature of Wix - Wix adds our form inside another special iFrame, for which it sets reduced sandbox privileges. The privileges your Wix website is currently granting are:

    sandbox="allow-same-origin allow-forms allow-popups allow-scripts allow-pointer-lock"

    But in order for our form to function, it must also be allowed top level navigation, so the sandbox code on Wix should be changed into this:

    sandbox="allow-top-navigation allow-same-origin allow-forms allow-popups allow-scripts allow-pointer-lock"

    To give a visual understanding of the structure on your website, it looks like this:

    Your main website (link) >
        hidden iFrame from Wix, reducing privileges of anything inside of it
    (link) >
            JotForm's iFrame
    (link) >
                our form itself.

    The iframe from Wix sets some privileges in its sandbox attribute, but not all the ones we need for the form to successfully submit:

    Wix embedded form is not submitting or redirecting to PayPal Image 2 Screenshot 41

    Please make sure that the sandbox attribute on your Wix site is either removed completely, or changed to give all required permissions as in the code mentioned above, and the form should be working fine after that.

    You may need to contact Wix support regarding how to remove the sandbox attribute from the box into which you are copy-pasting our embed code. You can also check our guide on how to embed a form into Wix here:

    https://www.jotform.com/help/70-Adding-a-Form-to-Wix-Site