I am constantly getting complaints about uploading photos using my forms

  • Profile Image
    DesignwENRG
    Asked on March 05, 2021 at 11:02 AM

    I have lots of customers who are complaining about the file / photo upload issues using Wordpress embedded forms.


    What is the MOST robust way to use these forms on a wordpress page? I need to figure out why this keeps being a problem. I know before I was told it may have to do with Javascript issues / conflicts. Isn't there some way to get around this completely?

    I am not a programmer. I just want this to go away.


    On this page... I re-embedded the iframe code, and it seemed to fix it. Is there something about the code that can change perhaps, say being modified by Wordpress so it will corrupt the intended code or function of it? I can't think of any other thing that could be moving my cheese. It's super annoying. I want to set it and just forget it.

  • Profile Image
    Welvin
    Answered on March 05, 2021 at 04:01 PM

    The default script embed method loads the form using JavaScript, and in some cases, this creates a conflict on a page regardless if it's WordPress or not. The conflict will either affect the form itself, including its file upload feature, or the features in your website.

    If the conflict happens, we recommend the iframe method because it will isolate your form in an iframe and prevent any conflict from happening.

    I understand this has worked before, but WordPress is a CMS where updates are rolled out from time to time. Plus, your plugins. It's mostly related to the plugins and their JavaScript resources. It is very technical to figure out what causes the problem, as that involves basic WordPress troubleshooting like disabling your plugin one at a time. So, instead of troubleshooting this, consider re-embedding your forms as an iframe. That's the solution if you don't wish to go through the troubleshooting steps.

    I hope that helps.

    Thanks

  • Profile Image
    DesignwENRG
    Answered on March 06, 2021 at 10:35 AM

    I noticed that when I embed the iframe code (which has become my go-to... ) I noticed that regardless of which wordpress or editor I am using, the code seems to lose its whitespace settings and looks differently formatted. I am wondering if what might be going on is that the editor is making some subtle change to the code in some regard.

    I recently re-embeded the iframe using a 'raw html' code block available from the editor implemented on the site. We'll see if that helps. I can't upload a new screenshot, but take my word for it, the code looks more like it did when I pasted it into the site right after copying it from JotForm. Can whitespace formatting effect how it works?

  • Profile Image
    Ariel_P
    Answered on March 06, 2021 at 02:26 PM

    Some page builders strip the HTML tags that renders the code in plain text. I believe your site is using WPBakery. The page builder's Raw HTML element is one way to embed the form in that case.

    You can also try the plugin or shortcode embed methods on your WordPress site, if you're still having trouble.

    Regarding the white space, I believe you're referring to the code being minified; there's always a possibility that something could go wrong when compressing the code, but it's fine most of the time.