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.

Please appreciate my efforts, help and support extended to you by clicking on – “Accept as Solution”; button under my answer. It will motivate me to help others as well.
Regards,
Nikhil Bajaj

Vishweshwara
Tera Contributor

Thanks @Nikhil Bajaj9 it worked!

 

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

 

Please appreciate my efforts, help and support extended to you by clicking on – “Accept as Solution”; button under my answer. It will motivate me to help others as well.
Regards,
Nikhil Bajaj