Syntax error message from Dreamweaver

  • num1dgh
    Asked on December 17, 2016 at 8:05 PM

    When I copy and paste the code into Dreamweaver, I keep getting an error saying there is a syntax error and the code hinting may not work until I fix the error. Please advise. This is the first time I've seen this error on code from Jotform. It is on the form Ladies' League.

     

    Help! 

     

    Thanks,

     

    Cathy Lamb

    Jotform Thread 1014274 Screenshot
  • liyam
    Replied on December 17, 2016 at 9:53 PM

    Hello Cathy,

    It's possible that it's not recognizing the coding syntax when the code is compressed to be on a single line. You can try formatting the code like this:

    <script type="text/javascript">
    JotForm.init(function(){ 
    JotForm.initCaptcha('input_7'); 
    $('input_7_reload').observe('click',function(){ 
    JotForm.reloadCaptcha('input_7') }) 
    JotForm.clearFieldOnHide="disable"; 
    JotForm.onSubmissionDISABLEDerror="jumpToFirstError"; });
    </script>

    It should stop showing the syntax error on Dreamweaver.

    If you have questions, please let us know.

    Thanks.