Embedded form does not submit if third-party cookies is blocked.

  • Profile Image
    sujan 
    Asked on August 09, 2022 at 03:42 AM

    If a user has blocked third-party cookies then the form does not submit. This error is logged in the console:

    Uncaught DOMException: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.

    I'm using iframe to embed.

    Screenshot
  • Profile Image
    Rica
    Answered on August 09, 2022 at 03:49 AM

    Hello Sujan,

    Thanks for reaching out to Jotform Support. I’m sorry you're having difficulties with this. You are currently using a Guest account that does not have any forms. Can you please share with us the form URL in question and the website link where your form is embedded?

    Once we hear back from you, we'll be able to help you with this.

  • Profile Image
    Sujan 
    Answered on August 09, 2022 at 09:49 AM

    Hey Rica,

    My colleague provided me with the embed code, the form must be in his account. Here's the URL: https://form.jotform.com/221795155967066

    I can't share the website link because we haven't published it, this is still in development.

    Let me know if I can provide more information.

  • Profile Image
    Ryan
    Answered on August 09, 2022 at 10:20 AM

    Hello Sujan,

    Thanks for getting back to us. Just to confirm, does this error only occur when it is embedded in your website? Have you tried any other ways to embed your form?

    Give it a try and reach out again if you have any other questions.

  • Profile Image
    Sujan 
    Answered on August 10, 2022 at 03:11 AM

    Yes, this happens only when embedded. I did try the javascript option but it didn't work at all. I haven't tried hosting the form, hosting it ourselves is something we're holding off on but will let you know if we ever end up trying it.

    Is there anything that can be done about the issue while still using the iframe?

  • Profile Image
    Herbert
    Answered on August 10, 2022 at 06:43 AM

    Hello Sujan,

    Thanks for getting back to us. Can you tell us if the form with ID 221795155967066 is already embedded in a website? If yes, we'll need the website link so we can further investigate. On the other hand, if the form is not embedded, please try to use a private window or incognito to test your form.

    After we hear back from you, we’ll have a better idea of what’s going on and how to help.