cloning forms

  • Profile Image
    sportzgames
    Asked on April 10, 2011 at 12:21 PM

    After cloning a form from one of my existing forms, I add the source code (I do not embed) to a web page and now none of the hover text and required filed warnings work on the cloned file after I upload it. When I view the page, it says "Done, but with errors" in the bottom left corner of my web page, which makes me think that's why they are not working. I do not get this error with the originals of this page and I have made no changes to this new form after cloning (at this point) other then putting the new code on a different web page. After clicking on the error, it says "Jotform undefined, Line 40, Character 4" which tells me it is the form and not my web page. I don't see how cloning a file, leaving it exactly as the original other than putting it on a different web page gives one an error and one no error. Can you tell me what I might be doing wrong and how to correct it? Thanks

  • Profile Image
    allanftd
    Answered on April 10, 2011 at 01:23 PM

    Hi sportzgames,

    We apologize for the inconvenience. May we ask for the URLs of the websites where the original form ahd the cloned form are currently embedded? If they're not yet embedded on the live website, please provide the form name of the original and the clone forms. 

    We'll await your response. Thank you for using JotForm!

    JOTFORM SUPPORT

  • Profile Image
    sportzgames
    Answered on April 10, 2011 at 06:47 PM

    Here are the 2 links

    This one is the original: http://www.fantasysportzgames.com/NHLPlayoffs/nhlplayoff_rd1picks.html which works fine and has no errors when going to the page

    This is the cloned one: http://www.fantasysportzgames.com/NBAPlayoffs/nbaplayoff_rd1picks.html. The hover text and the required fields do not work on this one. Notice the lower left hand corner of the browser that says "done but with errors". Click on the yellow triangle and it tells you what the error is.
     
    Thanks for your help.

  • Profile Image
    abajan
    Answered on April 11, 2011 at 07:09 AM

    Hi sportzgames

    For what it's worth, from what I can tell, this problem is specific to Internet Explorer. Nevertheless, it is important to solve because many people use that browser.

    After copying the JotForm JavaScript code from each site and pasting the respective scripts into separate panes of Notepad++ and synchronizing both vertical and horizontal scrolling, I discovered differences on the last line (128) which may be responsible for generating the error near Line 40 of the NBA Playoffs form.

    The Online Lint reported just one error in each instance (on line 128): html error: missing quotes on src attribute

    Hopefully these findings help to zero in on what is generating the error.

  • Profile Image
    sportzgames
    Answered on April 11, 2011 at 09:34 AM

    So no suggestions on how to fix this problem?

    I'm also not sure how this can be an IE problem with my other forms work fine in IE. And since I cloned the files exactly while making no other changes, how can one work and the other one not work if its an IE problem? I'm not an expert on coding, but I know enough about it to know that something is happening in the jot form code while cloning to cause these errors.

  • Profile Image
    sportzgames
    Answered on April 11, 2011 at 09:39 AM

    Also, this error only happens when I enter the "source code" link into my web page. When I embed the code into my webpage, I don't get this error either. Another reason why I don't think its an IE issue.

    I don't have a problem embedding, but it makes life alot easier if I can just use the source code link which allows me to make changes to the form on the fly without embedding every time.

  • Profile Image
    NeilVicente
    Answered on April 11, 2011 at 03:25 PM

    Hi,

    The error has something to do with Jotform's script. I see that this only happens when using IE, as IE is less tolerant to errors. I found this difference between your two pages:

    nhl (w/o error)

    <script src="http://www.jotform.com/jsform/10384550647">

     nba (w/ error)

    <script src="http://form.jotform.com/jsform/10994839853">


    Replace form with www in the nba page and see if it works. Get back to us if it doesn't.

  • Profile Image
    sportzgames
    Answered on April 11, 2011 at 05:22 PM

    That seems to have solved the problem. Nice work!! Thanks for your help.

  • Profile Image
    NeilVicente
    Answered on April 11, 2011 at 05:22 PM

    You're welcome. Glad to be of help.