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

    conditions not working on original open

    Asked by Barkley on July 13, 2013 at 08:51 AM

    When ig go to http://www.foxmls.com a modal window opens with a form inside (http://www.foxmls.com/Flash-Page-Choice-15-minute-Listing.html).  

    Probably one ot of ten ten times the script does not run and all the fields are showing as can be seen in attachment.

    Page URL:
    http://www.foxmls.com

    Screenshot
    modal window www
  • Profile Image
    JotForm Support

    Answered by EltonCris on July 13, 2013 at 10:33 AM

    Hi,

    It's most probably due to script conflict. Note that you have another jQuery script runs on the page where the form is embedded. It might conflict with the prototype script used in the form, this is why the condition is failing at some point. I was able to replicate the problem but it's happening very intermittent. However, most of the time it works fine on my end.

    Try adding this noconflict script in your page after the LMStoreWindow.js script, this might help. It's worth a try.

    <script>jQuery.noConflict();</script>

    You can find out more about jQuery noconflicts here http://learn.jquery.com/using-jquery-core/avoid-conflicts-other-libraries/

    Thanks!

  • Profile Image

    Answered by Barkley on July 13, 2013 at 11:26 AM

    It says "All <script> tags must have a type attribute".  Can i change <script> to:

    <script type="text/javascript">

  • Profile Image
    JotForm Support

    Answered by Welvin on July 13, 2013 at 01:51 PM

    Hi,

    Yes, you can. Please try and let us know for the result.

    Thanks

  • Profile Image

    Answered by Barkley on July 15, 2013 at 07:40 AM

    It did not work. I justed changed to <script type="text/javascript"> to see if that works.

  • Profile Image

    Answered by sidharth_kch on July 15, 2013 at 10:08 AM

    @Barkley

    Please let us know where did you see this error (<script> tag must have type attribute)? Are you getting this error in your browser?

    Actually <script> tag without the type attribute should work fine in all new browsers as it will default to javascript. 

    Thanks,

    Sidharth

  • Profile Image

    Answered by Barkley on July 15, 2013 at 12:45 PM

    The issue is how do I keep the 2 scripts from conflicting?

  • Profile Image
    JotForm Support

    Answered by EltonCris on July 15, 2013 at 12:57 PM

    @Barkley 

    Do you prefer using iframe embed code? This is the best solution to avoid conflicts since the form loads in an iframe. This should fixed it. The downside here is that you have to define a fixed height for your iframe since it's not like the default script embed code where the length of the form automatically adjust everytime a new element is shown.

    Thanks!

  • Profile Image

    Answered by Barkley on July 15, 2013 at 01:30 PM

    I do not think I can use iframes because of the following: 

    The actual page with modal widows is:

    http://form.jotform.us/form/31903808804152?

    You will see the target on the hyperlinks are:    

    It uses this script:

    <!-- ******** BEGIN LIKNO WEB MODAL WINDOWS CODE FOR LMStoreWindow ******** -->

    <script type="text/javascript">var lwmwLinkedBy="LiknoWebModalWindows [1]",lwmwName="LMStoreWindow",lwmwBN="260";</script><script charset="UTF-8" src="//www.foxmls.com/likno-scripts/LMStoreWindow.js" type="text/javascript"></script>

    <!-- ******** END LIKNO WEB MODAL WINDOWS CODE FOR LMStoreWindow ******** -->

     

  • Profile Image
    JotForm Support

    Answered by EltonCris on July 15, 2013 at 02:05 PM

    @Barkley 

    I see, I got it.

    It seems pretty hard to track which particular script conflicts to the form. What we can do here is to do trial and error. Can you please try to replace your jquery.js file to this jquery (this is an original jquery used in your form), this might help. 

    If this doesn't make any difference, try to remove the jquery library declared in the form since it would be redundant having two jqueries called in the same page.

    Make sure to clear your browsers cache when making a test. If none of these works, let us know here. Thanks!

  • Profile Image

    Answered by Barkley on July 15, 2013 at 04:24 PM

    I did remove the as seem below, but then it never runs the conditions.

    <!--webbot bot="Include" U-Include="Track-Modal-LMStoreWindow.html" TAG="BODY" -->

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

    <div style="width:700px; margin: 0 auto;"> 

     

     

    <!-- The List 15 Minute Splash goes below here always remove this from the next line:  <script src="//cdn.jotfor.ms/js/vendor/jquery-1.8.0.min.js?v=3.1.1092" type="text/javascript"></script>   -->

     

    <!--  <script src="//cdn.jotfor.ms/js/vendor/jquery-1.8.0.min.js?v=3.1.1092" type="text/javascript"></script>  -->

    <script src="//cdn.jotfor.ms/js/vendor/maskedinput.min.js?v=3.1.1092" type="text/javascript"></script>

    <script src="//cdn.jotfor.ms/static/jotform.js?3.1.1092" type="text/javascript"></script>

    <script type="text/javascript">

  • Profile Image
    JotForm Support

    Answered by Welvin on July 15, 2013 at 10:32 PM

    Works for me now:

    Still had the issue on your end? Please try to clear your browsers cache.  

    Also, have you tried using only the source codes for this page: http://www.foxmls.com/Flash-Page-Choice-15-minute-Listing.html ? Remove extra codes from the page. Just the plain form source codes. 

     

    Thanks

  • Profile Image

    Answered by Barkley on July 16, 2013 at 07:44 AM

    Still breaks in firefox.  What do you mean only using the source code?  

  • Profile Image
    JotForm Support

    Answered by Welvin on July 16, 2013 at 11:22 AM

    Hi,

    Oops! I didn't notice that in Firefox. I'm just viewing the page directly with IE. Yes, use the form source codes. You can get it here: http://pastebin.com/0wndb9uC or by following this guide: How to Get Form Source Codes.

    Your page: http://www.foxmls.com/Flash-Page-Choice-15-minute-Listing.html contains additional codes and that may caused the issue. Using just the form source codes may help you resolved this. Please try that and let us know for the results.

     

    Thanks

  • Profile Image

    Answered by Barkley on July 16, 2013 at 06:42 PM

    I chnaged my strategy.  I know go to a non form page first.  The only issue is in firefox.  Go to:

    http://www.foxmls.com/Flash-Page-Choice-15-minute-Listing.html

    chose Illinois as the state, then press F5 to refresh and start over.  It does not clear. It works in Opera, IE and Chrome.

  • Profile Image
    JotForm Support

    Answered by jonathan on July 16, 2013 at 07:18 PM

    Hi Barkley,

    I tried your website page http://www.foxmls.com/Flash-Page-Choice-15-minute-Listing.html  using my Firefox browser and I could not seems to reproduce the issue anymore.

    I was able to refresh and reload the page to its initial state similar to using its direct URL http://www.jotform.us/form/31966802170151

    Since the form source code was already hosted in your website, it seems to me you need to clear also the cache of your website to clear the old web page from being loaded. 

    i.e. 

    when I initially open this page URL  http://www.foxmls.com/Flash-Page-Choice-15-minute-Listing.html , it shows the form with already a filled in info. This might be a remnant of a cache on the website. But when you reload the page, it will now restore to the normal state as the form.

    Hope this help. Please inform us if the issue persist.

    Thanks.