Parsing error: Unexpected token else

Vishweshwara
Tera Contributor

Vishweshwara_0-1726311344351.png

post else statement, i am getting this error for on submit client script.

any leads please let me know.

3 REPLIES 3

Nikhil Bajaj9
Tera Sage

semicolon ; after If condition is the root cause of this error so remove ; from Line number 10 and try again.

 

Please mark my answer helpful/accept solution if it helped.

Vishweshwara
Tera Contributor

Thanks @Nikhil Bajaj9 it worked!

 

Great- Can you please mark my answer as - Solution accepted means the correct answer.