Syntax error message from Dreamweaver

  • Profile Image
    num1dgh
    Asked on December 17, 2016 at 08: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

  • Profile Image
    liyam
    Answered on December 17, 2016 at 09: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.onSubmissionError="jumpToFirstError"; });
    </script>

    It should stop showing the syntax error on Dreamweaver.

    If you have questions, please let us know.

    Thanks.