Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

SyntaxError; missing ; before statement

New Here ,
Dec 06, 2024 Dec 06, 2024

Hi, I'm very much a novice to JavaScript, so what is likely a simple resolution is baffling me as to why I'm getting the "SyntaxError; missing ; before statement    1:at line 2" error message in the following code:

 

If (event.value==”Today”) this.getField(“AP”).value = “East”;
else if (event.value==”Tomorrow”) this.getField(“AP”).value = “North”;
else this.getField(“AP”).value = “”;

 

I have a drop-down list and want to populate another field "AP" based upon what the user selects from the list, but that error message occurs and I don't understand why.

 

Thanks for your help!

TOPICS
User interface issues
451
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 2 Correct answers

Adobe Employee , Feb 13, 2025 Feb 13, 2025

Hi murray01,

 

Thank you for reaching out.

 

This is something that experts can best answer. We see that you are using the free Acrobat Sign service. If you are using the Acrobat Sign enterprise plan, you may contact our Adobe Sign Enterprise support team for the correct information if you have an Acrobat Sign Enterprise account with an alternate email address. You may contact them using the steps in the following help document: https://adobe.ly/41e7vcB.

 

 

Thanks,

Meenakshi

Translate
Community Expert , Feb 16, 2025 Feb 16, 2025

For the strings use " not  ”

Translate
Adobe Employee ,
Feb 13, 2025 Feb 13, 2025

Hi murray01,

 

Thank you for reaching out.

 

This is something that experts can best answer. We see that you are using the free Acrobat Sign service. If you are using the Acrobat Sign enterprise plan, you may contact our Adobe Sign Enterprise support team for the correct information if you have an Acrobat Sign Enterprise account with an alternate email address. You may contact them using the steps in the following help document: https://adobe.ly/41e7vcB.

 

 

Thanks,

Meenakshi

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 16, 2025 Feb 16, 2025
LATEST

For the strings use " not  ”

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines