What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.

  • Profile Image

    Error handling when pasting source code into my site

    Asked by ktomasso on October 06, 2016 at 03:43 PM

    I chose to paste the HTML into my site to keep the markup and styles to a minum. I kept all of the script tags intact but removed all styles and links to external style sheets. 

    Everything works, however when there's an error from the server, e.g. a required field not properly filled in, it takes the user to a separate jotform error page with a link to get back to my site after submit. I'd much rather have the error print out on my contact page. 

    Which snippets of code control the error handling on the page? It seems I've lost all my client-side error handling as well. I'd like to add this functionality back in while keeping my markup and stylesheet clean of most of the jotform defaults. Is this possible?

    Page URL:

  • Profile Image
    JotForm Support

    Answered by Mike on October 06, 2016 at 06:58 PM

    The validation seems to be not working due to conflict between form Prototype JS and jQuery on your web page.

    You can try to add the jQuery.noConflict() snippet after your scripts.

    <script type="text/javascript"> $.noConflict(); </script>

    The validation CSS is under formCss.css file.

    <link target="_blank" href="https://cdn.jotfor.ms/static/formCss.css?3.3.15156" rel="nofollow noopener" rel="stylesheet" type="text/css" />

    If you need any further assistance, please let us know.