Title: Javascript error. Validation Not Working. Uncaught SyntaxError: Unexpected token
Last modified: April 5, 2017

---

# Javascript error. Validation Not Working. Uncaught SyntaxError: Unexpected token

 *  [ronaldsiswara](https://wordpress.org/support/users/ronaldsiswara/)
 * (@ronaldsiswara)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/javascript-error-validation-not-working-uncaught-syntaxerror-unexpected-token/)
 * Hi there,
 * I installed this plugin a while ago and try to work the validation but it does
   not work.
 * I check the javascript console and there is a javascript error on line 202
 * The page is [http://arjunaelektro.staging.wpengine.com/form-pemesanan-barang/?item_name=&product_cat=handphone&item_id=8081](http://arjunaelektro.staging.wpengine.com/form-pemesanan-barang/?item_name=&product_cat=handphone&item_id=8081)
 * I checked the source and there seems to be html tag of <br /> that gets sprinkled
   in the script section. I checked the demo and there should not be that tag.
 * Really appreciate it if I can get help using this awesome plugin.
 * Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Daman Jeet](https://wordpress.org/support/users/djeet/)
 * (@djeet)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/javascript-error-validation-not-working-uncaught-syntaxerror-unexpected-token/#post-9029664)
 * Hi [@ronaldsiswara](https://wordpress.org/support/users/ronaldsiswara/),
 * I looked into the issue on the URL you have given.
 * I tried to replicate the issue on the GF 2.1.3 but what I found is there is a
   different HTML structure rendering over your site for the name field, that made
   our plugin throw error.
 * I think there is some customization exists for the gform name field.
 * Please check for the customization and then I could you help you out with this
   issue.
 * Thanks,
    Djeet
 *  Thread Starter [ronaldsiswara](https://wordpress.org/support/users/ronaldsiswara/)
 * (@ronaldsiswara)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/javascript-error-validation-not-working-uncaught-syntaxerror-unexpected-token/#post-9029806)
 * Hi [@djeet](https://wordpress.org/support/users/djeet/),
 * Can you please let me know what customization should I look for ?
    Is it custom
   code that change the html rendering ? Is it any settings from the GF Dashboard
   UI ?
 *  Plugin Author [Daman Jeet](https://wordpress.org/support/users/djeet/)
 * (@djeet)
 * [9 years ago](https://wordpress.org/support/topic/javascript-error-validation-not-working-uncaught-syntaxerror-unexpected-token/#post-9087499)
 * Hi [@ronaldsiswara](https://wordpress.org/support/users/ronaldsiswara/),
 * You should look for Gravity Form hooks in your theme’s functions.php file.
    If
   it’s not there, it should be coming from some plugin for sure.
 * Please go to Gravity Form Settings> Real Time Validation and raise a support 
   ticket. So that I could access necessary info about your environment.
 * Thanks!
    D.Jeet

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Javascript error. Validation Not Working. Uncaught SyntaxError: Unexpected
token’ is closed to new replies.

 * ![](https://ps.w.org/real-time-validation-for-gravity-forms/assets/icon-256x256.
   jpg?rev=1472411)
 * [Real Time Validation for Gravity Forms](https://wordpress.org/plugins/real-time-validation-for-gravity-forms/)
 * [Support Threads](https://wordpress.org/support/plugin/real-time-validation-for-gravity-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/real-time-validation-for-gravity-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/real-time-validation-for-gravity-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/real-time-validation-for-gravity-forms/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Daman Jeet](https://wordpress.org/support/users/djeet/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/javascript-error-validation-not-working-uncaught-syntaxerror-unexpected-token/#post-9087499)
 * Status: not resolved